Managing Audio

Nimbus allows your application to manually set the volume, customize the mute button, and mute or unmute ads.

Customizing Volume / Muting Ads

If your application allows users to define music or sound's volume, it is recommended to Ads use the same volume set by the user.

In order to accomplish that Nimbus allows you to set the custom volume using the AdController object.

// Custom volume
adController.volume = 60 // ranges from 0 to 100 

// Mute ads
adController.volume = 0

Customizing the Mute Button

Nimbus allows apps to change the button's drawable to match the app's style using the BlockingAdRenderer

BlockingAdRenderer.setMuteButton = newDrawable

Last updated