Classes

The following classes are available globally.

  • SINManagedPush is a helper class to manage push notification credentials for VoIP Push Notifications.

    SINManagedPush acts as a facade for registering for device token for VoIP notifications, and can also automatically register any received push credentials to any active SINClient.

    SINManagedPush simplifies scenarios such as when receiving a device token occur before creating a SINClient. In such a case, SINManagedPush can automatically register the device token when the SINClient is created and started.

        -(BOOL)application:(UIApplication *)application
          didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
            self.push = [Sinch managedPushWithAPSEnvironment:SINAPSEnvironmentDevelopment]
            [self.push setDesiredPushType:SINPushTypeVoIP];
        }
    
    See more

    Declaration

    Objective-C

    
    @interface SINManagedPush : NSObject

    Swift

    class SINManagedPush : NSObject
  • The Sinch class is used to instantiate a SINClient.

    This is the starting point for an app that wishes to use the Sinch SDK.

    To construct a SINClient, the required configuration parameters are:

    • Application Key
    • Environment host (default is ‘ocra.api.sinch.com’)
    • UserID

    It is optional to specify:

    • CLI (Calling-Line Identifier / Caller-ID) that will be used for calls terminated to PSTN (Publicly Switched Telephone Network).
    See more

    Declaration

    Objective-C

    
    @interface Sinch : NSObject