public class EloView extends AccountManager
setOfflinePlayContentgetPlayContentgetPlayContentStatusgetDeviceCloudStatustoggleWifitoggleBT| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_GET_DEVICE_CLOUD_STATUS |
static java.lang.String |
ACTION_GET_PLAY_CONTENT |
static java.lang.String |
ACTION_GET_PLAY_CONTENT_STATUS |
static java.lang.String |
ACTION_SET_OFFLINE_PLAY_CONTENT |
static int |
DEVICE_CLOUD_STATUS_CODE
Response code to get the current connection status of Device with EloView cloud
|
static int |
GET_DEVICE_ONLINE_STATUS |
static int |
GET_PLAY_CONTENT |
static int |
GET_PLAY_CONTENT_STATUS |
static EloView |
instance |
static int |
OFFLINE_PLAY_CONTENT_CODE
Response code to get the status of the offline play content
|
static int |
QS_BT_RESPONSE_CODE
Response code for enable/disable bt in quick settings
|
static int |
QS_WIFI_RESPONSE_CODE
Response code for enable/disable wifi in quick settings
|
static java.lang.String |
RESPONSE_GET_DEVICE_CLOUD_STATUS |
static java.lang.String |
RESPONSE_OFFLINE_PLAY_CONTENT |
ACCESS_TOKEN_INVALID, ACCESS_TOKEN_VALID, API_ACCESS_TOKEN_INVALID, API_ACCESS_TOKEN_VALID, IS_USER_LOGIN_OAUTH, isPolaris, OAUTH_TOKEN_INVALID, OAUTH_TOKEN_VALID, REQUEST_AUTH_LOGIN, REQUEST_AUTH_LOGOUT, SETUP_OAUTH_ERROR, SETUP_OAUTH_SUCCESS, TOKEN_VERIFY_FAIL, TOKEN_VERIFY_SUCCESSGENERIC_ERROR, OAUTH_PATH_TOKEN, OAUTH_PATH_VERIFY| Constructor and Description |
|---|
EloView() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindService(android.content.Context context,
ServiceConnectionCallback callback,
java.lang.String accessToken)
This method is used to bind the service to the application.
|
java.lang.String |
getDeviceCloudStatus()
This method returns device's online/offline status.
|
java.lang.String |
getPlayContent()
This method returns the type of content and name of the content set on the device.
|
java.lang.String |
getPlayContentStatus()
This method returns the status of play content on the device in control mode.
|
java.lang.String |
readSystemProperty(java.lang.String key)
Read system property
|
java.lang.String |
setOfflinePlayContent(java.lang.String packageName)
This method is used to set content on the device in EloView control mode when device is offline or not registered to an account.
|
boolean |
switchToAndroidHomeMode()
This method is used to switch to Android home mode from EloView mode.
|
boolean |
switchToAndroidHomeMode(boolean isRebootNeeded,
boolean isAndroidHomeMode)
This method is used to switch to Android home mode from EloView mode.
|
int |
toggleBT(boolean isEnableBT)
This method is used to toggle the Bluetooth in Quicksettings (EloView mode).
|
int |
toggleWifi(boolean isEnableWifi)
This method is used to toggle the wifi in Quicksettings (EloView mode).
|
void |
unbindService(android.content.Context context)
This method is used to unbind the service from the application.
|
configureOAuthHostedUI, destroyOAuth, getBaseUri, getClientId, getEloAccessToken, getEloOAuthToken, getEnvironment, getProperty, isPolaris, isPolarisLocked, logoutOAuth, onOAuthActivityResult, selectEnvironment, setDefaultEnvironment, setProperty, stopOAuth, unregisterAccountManagerListener, verifyEloTokenclone, getEloIntentWithFlag, getMigrate, isDevice7Inch, isDeviceM100public static final java.lang.String ACTION_SET_OFFLINE_PLAY_CONTENT
public static final java.lang.String ACTION_GET_PLAY_CONTENT
public static final java.lang.String ACTION_GET_PLAY_CONTENT_STATUS
public static final java.lang.String RESPONSE_OFFLINE_PLAY_CONTENT
public static final java.lang.String ACTION_GET_DEVICE_CLOUD_STATUS
public static final java.lang.String RESPONSE_GET_DEVICE_CLOUD_STATUS
public static final int GET_PLAY_CONTENT
public static final int GET_PLAY_CONTENT_STATUS
public static final int GET_DEVICE_ONLINE_STATUS
public static final int OFFLINE_PLAY_CONTENT_CODE
public static final int DEVICE_CLOUD_STATUS_CODE
public static final int QS_WIFI_RESPONSE_CODE
public static final int QS_BT_RESPONSE_CODE
public static EloView instance
public void bindService(android.content.Context context,
ServiceConnectionCallback callback,
java.lang.String accessToken)
context - Context in which the Network APIs were usedcallback - ServiceConnectionCallbackaccessToken - Stringpublic void unbindService(android.content.Context context)
context - Contextpublic java.lang.String setOfflinePlayContent(java.lang.String packageName)
packageName - Package to be set as default content on the device.public java.lang.String getPlayContent()
public java.lang.String getPlayContentStatus()
public java.lang.String getDeviceCloudStatus()
public int toggleWifi(boolean isEnableWifi)
isEnableWifi - Sending boolean for enabling/disabling wifi in Quicksettings.public boolean switchToAndroidHomeMode()
public boolean switchToAndroidHomeMode(boolean isRebootNeeded,
boolean isAndroidHomeMode)
isRebootNeeded - : Boolean parameter for specifying whether reboot is needed or not.isAndroidHomeMode - : Boolean parameter for specifying Android Home flag.public int toggleBT(boolean isEnableBT)
isEnableBT - Sending boolean for enabling/disabling Bluetooth in Quicksettings.public java.lang.String readSystemProperty(java.lang.String key)
key - key of system property