public abstract class Voice extends Object
Constructor and Description |
---|
Voice() |
Modifier and Type | Method and Description |
---|---|
static Call |
call(Context context,
String accessToken,
Map<String,String> twiMLParams,
Call.Listener listener)
Creates a new OutgoingCall.
|
static LogLevel |
getLogLevel()
Returns the logging level for messages logged by the Voice SDK.
|
static LogLevel |
getModuleLogLevel(LogModule module)
Returns the logging level for messages logged by the specified LogModule.
|
static String |
getVersion()
Returns the version of the Voice SDK.
|
static void |
handleMessage(Context context,
Map<String,String> data,
MessageListener listener)
Handle messages from FCM
|
static void |
register(Context context,
String accessToken,
String fcmToken,
RegistrationListener listener)
Registers with FCM token for incoming call push notifications.
|
static void |
setLogLevel(LogLevel level)
Sets the logging level for messages logged by the Voice SDK.
|
static void |
setModuleLogLevel(LogModule module,
LogLevel level)
Sets the logging level for messages logged by a specific module.
|
static void |
unregister(Context context,
String accessToken,
String fcmToken,
UnregistrationListener listener)
Unregisters with FCM token from receiving further incoming call push notifications.
|
public static void register(Context context, String accessToken, String fcmToken, RegistrationListener listener)
context
- The application context of your Android application.accessToken
- An access token.fcmToken
- A FCM token.listener
- A listener that receives registration request status.public static void unregister(Context context, String accessToken, String fcmToken, UnregistrationListener listener)
context
- The application context of your Android applicationaccessToken
- An access token.fcmToken
- A FCM token.listener
- A listener that receives unregistration request status.public static Call call(Context context, String accessToken, Map<String,String> twiMLParams, Call.Listener listener)
A SecurityException
will be thrown if RECORD_AUDIO is not granted
context
- The application context of your Android application.accessToken
- An access token.twiMLParams
- An optional Map of parameters that are passed to your TwiML Application.listener
- A listener that receives call status.Call object
public static void handleMessage(Context context, Map<String,String> data, MessageListener listener)
public static String getVersion()
public static LogLevel getLogLevel()
public static LogLevel getModuleLogLevel(LogModule module)
public static void setLogLevel(LogLevel level)
level
- The logging level