Enumerations
The following enumerations are available globally.
-
The SinchAudioController provides methods for controlling audio related functionality, e.g. enabling the speaker, muting the microphone, and playing sound files.
Playing Sound Files
The audio controller provides a convenience method (startPlayingSoundFile:looping:) for playing sounds that are related to a call, such as ring tones and busy tones.
Example
let audio = client.audioController let soundPath = Bundle.main.path(forResource: "ringtone", ofType: "wav") do { try audio.startPlayingSoundFile(withPath:soundPath, looping:true) } catch { ... }Applications that prefer to use their own code for playing sounds are free to do so, but they should follow a few guidelines related to audio session categories and audio session activation/deactivation (see Sinch SDK User Guide for details).
Sound File Format
The sound file must be a mono (1 channel), 16-bit, uncompressed (PCM) .wav file with a sample rate of 8kHz, 16kHz, or 32kHz.
Preferred audio device (input and output route together).
See moreDeclaration
Swift
public enum SinchAudioDevice -
Undocumented
See moreDeclaration
Swift
public enum SinchCallQualityWarningEventextension SinchCallQualityWarningEvent: Equatable -
Describe possible errors that might happen
See moreDeclaration
Swift
public enum Errors : Error -
APSEnvironment is used to declare to which Apple Push Notification Service environment a device token is bound to.
APSEnvironment is used with
SinchClient.registerPushNotificationDeviceToken:forPushType:apsEnvironment:orSinchManagedPush.Example
An application which is codesigned and provisioned with a “Development” Provisioning Profile will be tied to the APNs Development environment.
An application which is codesigned and provisioned with a “Distribution” Provisioning Profile will be tied to the APNs Production environment.
See Apple documentation for further details: https://developer.apple.com/documentation/usernotifications/registering_your_app_with_apns?language=objc https://developer.apple.com/documentation/bundleresources/entitlements/aps-environment?language=objc
See moreDeclaration
Swift
@frozen public enum APSEnvironment : String, CaseIterable -
LogSeverity can be used to increase or decrease amount of logging
See moreDeclaration
Swift
public enum LogSeverity : String, CaseIterable
Enumerations Reference