|
static final String | ADMIN_SERVICE_CLASS_NAME = "com.mightyimmersion.mightyplatform.AdminService" |
|
static final String | TAG = "MXRAdminAppMessenger" |
|
Definition at line 29 of file MXRAdminAppMessenger.java.
◆ MXRAdminAppMessenger()
com.managexr.getserialsample.MXRAdminAppMessenger.MXRAdminAppMessenger |
( |
Context | _context | ) |
|
|
inline |
◆ bindToAdminServiceLoop()
void com.managexr.getserialsample.MXRAdminAppMessenger.bindToAdminServiceLoop |
( |
| ) |
|
|
inlineprotected |
◆ getDeviceStatusAsync()
boolean com.managexr.getserialsample.MXRAdminAppMessenger.getDeviceStatusAsync |
( |
| ) |
|
|
inline |
◆ getInstalledAdminAdminServiceComponent()
ComponentName com.managexr.getserialsample.MXRAdminAppMessenger.getInstalledAdminAdminServiceComponent |
( |
| ) |
|
|
inlineprivate |
◆ getSerial()
String com.managexr.getserialsample.MXRAdminAppMessenger.getSerial |
( |
| ) |
|
|
inline |
Gets the device's serial number. This may be null if this app has never queried the ManageXR Admin App for the device's serial number in the past. It is recommended to use the async onSerialUpdated method instead.
- Returns
- serial number of device
Definition at line 100 of file MXRAdminAppMessenger.java.
◆ getSharedPrefs()
SharedPreferences com.managexr.getserialsample.MXRAdminAppMessenger.getSharedPrefs |
( |
| ) |
|
|
inlineprivate |
◆ isBound()
boolean com.managexr.getserialsample.MXRAdminAppMessenger.isBound |
( |
| ) |
|
|
inline |
◆ isManaged()
boolean com.managexr.getserialsample.MXRAdminAppMessenger.isManaged |
( |
| ) |
|
|
inline |
◆ launchAdminAppServiceIfNeeded()
void com.managexr.getserialsample.MXRAdminAppMessenger.launchAdminAppServiceIfNeeded |
( |
String | packageName | ) |
|
|
inlineprivate |
◆ onBindStatusUpdated()
void com.managexr.getserialsample.MXRAdminAppMessenger.onBindStatusUpdated |
( |
BindStatusListener | _listener | ) |
|
|
inline |
Sets a listener that will be called when the MXRAdminAppMessenger's bind status changes. If the ManageXRMessenger is bound, then this app is able to communicate with the ManageXR Admin App.
Definition at line 67 of file MXRAdminAppMessenger.java.
◆ onSerialUpdated()
void com.managexr.getserialsample.MXRAdminAppMessenger.onSerialUpdated |
( |
SerialListener | _listener | ) |
|
|
inline |
Sets a listener that will be called as soon as the device's serial number is known.
Definition at line 74 of file MXRAdminAppMessenger.java.
◆ registerAsClient()
boolean com.managexr.getserialsample.MXRAdminAppMessenger.registerAsClient |
( |
| ) |
|
|
inlineprivate |
◆ removeQuotesAndUnescape()
String com.managexr.getserialsample.MXRAdminAppMessenger.removeQuotesAndUnescape |
( |
String | uncleanJson | ) |
|
|
inlineprivate |
◆ sendMessage() [1/2]
boolean com.managexr.getserialsample.MXRAdminAppMessenger.sendMessage |
( |
int | what | ) |
|
|
inline |
◆ sendMessage() [2/2]
boolean com.managexr.getserialsample.MXRAdminAppMessenger.sendMessage |
( |
int | what, |
|
|
String | jsonString ) |
|
inline |
◆ startBindToAdminServiceLoop()
void com.managexr.getserialsample.MXRAdminAppMessenger.startBindToAdminServiceLoop |
( |
| ) |
|
|
inline |
◆ tryBindToAdminService()
void com.managexr.getserialsample.MXRAdminAppMessenger.tryBindToAdminService |
( |
| ) |
|
|
inlineprivate |
◆ unbindFromAdminService()
void com.managexr.getserialsample.MXRAdminAppMessenger.unbindFromAdminService |
( |
| ) |
|
|
inlineprivate |
◆ updateSerial()
void com.managexr.getserialsample.MXRAdminAppMessenger.updateSerial |
( |
@NonNull String | serial | ) |
|
|
inlineprivate |
If the provided serial number is different than what we already have stored locally, then update the serial number saved to disk and send a message to the serialListener.
Definition at line 108 of file MXRAdminAppMessenger.java.
◆ ADMIN_SERVICE_CLASS_NAME
final String com.managexr.getserialsample.MXRAdminAppMessenger.ADMIN_SERVICE_CLASS_NAME = "com.mightyimmersion.mightyplatform.AdminService" |
|
staticprivate |
◆ bindStatusListener
◆ bound
boolean com.managexr.getserialsample.MXRAdminAppMessenger.bound |
|
private |
◆ CHECK_BINDING_FREQUENCY
final int com.managexr.getserialsample.MXRAdminAppMessenger.CHECK_BINDING_FREQUENCY = 60 * 1000 |
|
private |
◆ checkBindingHandler
final Handler com.managexr.getserialsample.MXRAdminAppMessenger.checkBindingHandler = new Handler() |
|
private |
◆ context
final Context com.managexr.getserialsample.MXRAdminAppMessenger.context |
|
private |
◆ incomingMessenger
final Messenger com.managexr.getserialsample.MXRAdminAppMessenger.incomingMessenger = new Messenger(new IncomingMessageHandler()) |
|
private |
◆ mConnection
final ServiceConnection com.managexr.getserialsample.MXRAdminAppMessenger.mConnection |
|
private |
Initial value:= new ServiceConnection() {
public void onServiceConnected(ComponentName className, IBinder service) {
Log.v(
TAG,
"onServiceConnected");
if (registeredAsClient) {
Log.v(
TAG,
"Registered as client");
} else {
Log.e(
TAG,
"Failed to register as client. Unbinding...");
}
}
public void onServiceDisconnected(ComponentName className) {
Log.v(
TAG,
"onServiceDisconnected");
}
}
Messenger outgoingMessenger
boolean getDeviceStatusAsync()
void unbindFromAdminService()
boolean registerAsClient()
BindStatusListener bindStatusListener
void onBindStatusChanged(boolean bound)
Definition at line 191 of file MXRAdminAppMessenger.java.
◆ outgoingMessenger
Messenger com.managexr.getserialsample.MXRAdminAppMessenger.outgoingMessenger |
|
private |
◆ serialListener
SerialListener com.managexr.getserialsample.MXRAdminAppMessenger.serialListener |
|
private |
◆ TAG
final String com.managexr.getserialsample.MXRAdminAppMessenger.TAG = "MXRAdminAppMessenger" |
|
staticprivate |
The documentation for this class was generated from the following file: