setCallSound
Sets the custom ringtone sound for incoming VoIP calls.
Specifies the audio file to play when a VoIP call arrives. The sound file must be located in the app's res/raw folder. Use the filename without extension. The default system ringtone is used if set to "default".
Example:
class Application : Application() {
override fun onCreate() {
super.onCreate()
// Use custom ringtone from res/raw/video_call_ringtone.mp3
PushwooshCallSettings.setCallSound("video_call_ringtone")
// Or use default system ringtone
PushwooshCallSettings.setCallSound("default")
}
}Content copied to clipboard
Note: The ringtone only plays for incoming call notifications. It stops when the user answers or rejects the call.
Parameters
sound
the name of the sound file in res/raw (without extension), or "default" to use the system ringtone. Default is "default" if not set.