java.lang.Object | |
↳ | com.gsma.services.rcs.RcsServiceControl |
A utility class to control the activation of the RCS service.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | RCS_STACK_PACKAGENAME | RCS stack package name |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static RcsServiceControl |
getInstance(Context ctx)
Gets an instance of RcsServiceControl
| ||||||||||
boolean |
isActivated()
Returns true if the RCS stack is marked as active on the device.
| ||||||||||
boolean |
isActivationModeChangeable()
Returns true if the RCS stack de-activation/activation is allowed by the client.
| ||||||||||
boolean |
isAvailable()
Returns true if the RCS stack is installed and not disabled on the device.
| ||||||||||
boolean |
isServiceStarted()
Returns true if the RCS stack is started.
| ||||||||||
void |
setActivationMode(boolean active)
Deactive/Activate the RCS stack in case these operations are allowed (see
isStackActivationStatusChangeable) or else throws an RcsPermissionDeniedException.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
RCS stack package name
Gets an instance of RcsServiceControl
ctx | the context. |
---|
Returns true if the RCS stack is marked as active on the device.
RcsGenericException |
---|
Returns true if the RCS stack de-activation/activation is allowed by the client.
RcsGenericException |
---|
Returns true if the RCS stack is installed and not disabled on the device.
Returns true if the RCS stack is started.
RcsGenericException |
---|
Deactive/Activate the RCS stack in case these operations are allowed (see isStackActivationStatusChangeable) or else throws an RcsPermissionDeniedException.
active | True is activation is enabled. |
---|
RcsPermissionDeniedException | |
RcsGenericException | |
RcsPermissionDeniedException |