public class UserAgent
The UserAgent serves as the base to use apiRTC. A user agent can be authenticated or not. For an Apizee cloud user, the uri is prefixed with 'apizee:'. He can be anonymous if it's a client of an Apizee enterprise and use prefix apzkey: as uri. Once registered, its Session object can be used to communicate with other contacts using the platform on the same API key and CCS server
Modifier and Type | Class and Description |
---|---|
static class |
UserAgent.Companion |
static class |
UserAgent.CreateStreamOptions |
static class |
UserAgent.DisconnectOptions |
static class |
UserAgent.MediaDeviceList |
static class |
UserAgent.RegisterInformation |
static class |
UserAgent.UserAgentOptions |
Modifier and Type | Field and Description |
---|---|
static UserAgent.Companion |
Companion |
Constructor and Description |
---|
UserAgent(android.content.Context context,
UserAgent.UserAgentOptions options) |
Modifier and Type | Method and Description |
---|---|
UserAgent |
createStream(UserAgent.CreateStreamOptions options,
kotlin.jvm.functions.Function2<? super com.apizee.apiRTC.UserAgent.Result,? super com.apizee.apiRTC.Stream,kotlin.Unit> callback)
Initialize stream
|
android.content.Context |
getContext()
Application context
|
UserAgent.MediaDeviceList |
getUserMediaDevices()
return user media devices
|
UserAgent |
register(UserAgent.RegisterInformation options,
kotlin.jvm.functions.Function2<? super com.apizee.apiRTC.UserAgent.Result,? super com.apizee.apiRTC.Session,kotlin.Unit> callback)
Register a UA to the server.
|
void |
unregister(UserAgent.DisconnectOptions options)
Unregisters this UserAgent
|
public static UserAgent.Companion Companion
public UserAgent(android.content.Context context, UserAgent.UserAgentOptions options)
context
- Application contextoptions
- all user connection optionsoptions
- all user connection optionspublic UserAgent register(UserAgent.RegisterInformation options, kotlin.jvm.functions.Function2<? super com.apizee.apiRTC.UserAgent.Result,? super com.apizee.apiRTC.Session,kotlin.Unit> callback)
Register a UA to the server.
options
- all user connection optionscallback
- Callback with the connected Session as argumentpublic UserAgent createStream(UserAgent.CreateStreamOptions options, kotlin.jvm.functions.Function2<? super com.apizee.apiRTC.UserAgent.Result,? super com.apizee.apiRTC.Stream,kotlin.Unit> callback)
Initialize stream
options
- callback
- Callback to call when operation is terminatedpublic void unregister(UserAgent.DisconnectOptions options)
Unregisters this UserAgent
options
- public UserAgent.MediaDeviceList getUserMediaDevices()
return user media devices
public android.content.Context getContext()
Application context