Package 

Interface SinchClient

  • All Implemented Interfaces:

    
    public interface SinchClient
    
                        

    The SinchClient is the Sinch SDK entry point.

    It provides access to the feature classes in the Sinch SDK: CallController, AudioController and VideoController. It's also used to configure the user's and device's capabilities.

    The user IDs that are used to identify users application specific. If the app already has a scheme for user IDs (email addresses, phone numbers, customer numbers, etc.), the same ID could be used when configuring the SinchClient.

    • Constructor Detail

    • Method Detail

      • checkManifest

         abstract Unit checkManifest()

        This method should be called before and be used during development time to verify that the manifest contains the permissions required. Once the application is ready to be published any calls to this manifest can be removed.

      • start

         abstract Unit start()

        Starts the SinchClient. This must be done prior to making any calls.

      • terminateGracefully

         abstract Unit terminateGracefully()

        Terminates the Sinch client, while still leaving it some time to finish up currently pending tasks, for example finishing pending HTTP requests.

      • unregisterPushToken

         abstract Unit unregisterPushToken(PushTokenUnregistrationCallback pushTokenUnregistrationCallback)

        Unregisters any push token that has been registered for Sinch Managed Push (for the User that this instance is bound to).

        Parameters:
        pushTokenUnregistrationCallback - is a callback for push token unregistration events.
      • isStarted

         abstract Boolean isStarted()

        Indicates if the SinchClient is started.

      • getLocalUserId

         abstract String getLocalUserId()

        Returns the id of the user associated with this SinchClient.

      • getAudioController

         abstract AudioController getAudioController()

        Returns an AudioController object for controlling different audio settings. You may only call this while the SinchClient is started.

      • getVideoController

         abstract VideoController getVideoController()

        Returns a VideoController object for managing and retrieving views for Video calls. You may only call this while the SinchClient is started.