Sinch
@interface Sinch : NSObjectThe 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). - Important Thread safety notes: All interactions with SDK must be done on main thread/main GCD queue.
- 
                  
                  Unavailable Undocumented DeclarationObjective-C - (instancetype)init NS_UNAVAILABLE;
- 
                  
                  Instantiate a new client. The creation of the client may fail, as a result of input parameters being nil or not matching length criteria, or because of internal failure when creating application support directory. If any failure occurs, the returned value will be nil, and errorparameter will contain relevant information.See Important Thread safety notes: Should be called on main thread/main GCD queue. DeclarationObjective-C + (id<SINClient>)clientWithApplicationKey:(NSString *)applicationKey environmentHost:(NSString *)environmentHost userId:(NSString *)userId error:(NSError **)error;ParametersapplicationKeyApplication Key identifying the application. environmentHostHost for base URL for the Sinch RTC API environment to be used. E.g. ‘ocra.api.sinch.com’ userIdID of the local user. errorError object that describes the problem in case the method returns NO. It can be nil. Return Valuea SINClient object, or nil if creation of SINClient failed. If return value is nil, the value of error will contain more specific info about the failure. 
- 
                  
                  Instantiate a new client with a CLI (may be used for PSTN-terminated calls). The creation of the client may fail, as a result of input parameters being nil or not matching length criteria, or because of internal failure when creating application support directory. If any failure occurs, the returned value will be nil, and errorparameter will contain relevant information.See Important Thread safety notes: Should be called on main thread/main GCD queue. DeclarationObjective-C + (id<SINClient>)clientWithApplicationKey:(NSString *)applicationKey environmentHost:(NSString *)environmentHost userId:(NSString *)userId cli:(NSString *)cli error:(NSError **)error;ParametersapplicationKeyApplication key identifying the application. environmentHostHost for base URL for the Sinch RTC API environment to be used. E.g. ‘ocra.api.sinch.com’ userIdID of the local user. cliCaller-ID when terminating calls to PSTN. Must be a valid phone number. errorError object that describes the problem in case the method returns NO. It can be nil. Return Valuea SINClient object, or nil if creation of SINClient failed. If return value is nil, the value of error will contain more specific info about the failure. 
- 
                  
                  Instantiate a new SINManagedPushinstance to enable Push Notifications managed by the Sinch SDK and platform. When using managed push notifications, push notifications will be sent by the Sinch platform provided that Apple Push Notification Certificates for your application have been uploaded to Sinch.Important Thread safety notes: Should be called on main thread/main GCD queue. DeclarationObjective-C + (SINManagedPush *)managedPushWithAPSEnvironment: (SINAPSEnvironment)apsEnvironment;ParametersapsEnvironmentSpecification of which Apple Push Notification Service environment the application is bound to (via code signing and Provisioning Profile). 
- 
                  
                  Set a log callback block. The Sinch SDK will emit all it’s logging by invoking the specified block. Important Only log messages with severity level SINLogSeverityWarnor higher to the console in release builds, to avoid flooding the device console with debugging messages.Important Thread safety notes: Should be called on main thread/main GCD queue. DeclarationObjective-C + (void)setLogCallback:(SINLogCallback)block;Parametersblocklog callback block. IMPORTANT: The block may be invoked on any thread / GCD queue. 
- 
                  
                  Specify the data protection type (NSFileProtectionType) for the files created and used by the Sinch SDK. If not set specifically, the files will inherit the data protection level defined in your Application. Method should be called before creation any instances of Sinch SDK classes, e.g. SINClient,SINManagedPushetc.Important Thread safety notes: Should be called on main thread/main GCD queue. DeclarationObjective-C + (void)setDataProtectionType:(NSFileProtectionType)type;Parameterstypethe data protection type applied to the files created by the Sinch SDK. 
- 
                  
                  DeclarationObjective-C + (NSString *)versionString;Return ValueSinch SDK version. 
 Sinch Class Reference
        Sinch Class Reference