Package 

Interface RingingConfig


  • 
    public interface RingingConfig
    
                        

    Configuration describing the sounds played for incoming and outgoing calls in the Stream Video SDK.

    The SDK allows customizing ringing behavior using either Android resources or external audio URIs.

    Example using raw resources:

    val sounds = ringingConfig(
        resRingingConfig(context, R.raw.my_incoming_sound, R.raw.my_outgoing_sound),
        defaultMutedRingingConfig()
    )
    
    StreamVideoBuilder(sounds = sounds)

    Example using URIs:

    val sounds = ringingConfig(
        uriRingingConfig(incomingUri, outgoingUri),
        defaultMutedRingingConfig()
    )
    
    StreamVideoBuilder(sounds = sounds)

    If a sound URI is null, no sound will be played.

    Instances are typically created using one of the provided factory methods: defaultResourcesRingingConfig, deviceRingtoneRingingConfig, resRingingConfig, uriRingingConfig, or emptyRingingConfig.

    Creates a RingingConfig using externally provided audio URIs.

    • Method Summary

      Modifier and Type Method Description
      abstract Uri getIncomingCallSoundUri()
      abstract Uri getOutgoingCallSoundUri()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait