public class EloView extends AccountManager
setOfflinePlayContentgetPlayContentgetPlayContentStatusgetDeviceCloudStatustoggleWifitoggleBTunregisterEloViewAPIListener | 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 java.lang.String |
ACTION_STICKY_ANDROID_HOME_MODE |
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 |
static int |
SWITCH_TO_ANDROID_HOME_RESPONSE_CODE |
ACCESS_TOKEN_INVALID, ACCESS_TOKEN_VALID, API_ACCESS_TOKEN_INVALID, API_ACCESS_TOKEN_VALID, IS_USER_LOGIN_OAUTH, isPolaris, KEY_SERVER_ELO_POLARIS_DEV, KEY_SERVER_PRODUCTION_POLARIS, KEY_SERVER_QA_POLARIS, KEY_SERVER_STAGING_POLARIS, OAUTH_TOKEN_INVALID, OAUTH_TOKEN_VALID, REQUEST_AUTH_LOGIN, REQUEST_AUTH_LOGOUT, SETUP_OAUTH_ERROR, SETUP_OAUTH_SUCCESS, TOKEN_VERIFY_FAIL, TOKEN_VERIFY_SUCCESSACTION_SET_EST_REQUEST, ELO_FOLDER, ELO_NETWORK_CONF_CSV_FILE, ELO_WIFI_CONFIG_FOLDER, GENERIC_ERROR, isFROM, OAUTH_PATH_TOKEN, OAUTH_PATH_VERIFY, REQUEST_TOKEN, STR_CUSTOM_ANIM_IMAGE_FILE, STR_CUSTOM_ANIM_VIDEO_FILE, STR_CUSTOM_BRAND_LOGO_FILE, STR_CUSTOM_BRAND_NAME_FILE, STR_CUSTOM_BRAND_POWERED_BY_LOGO_FILE, STR_CUSTOM_LOCALE_NAME_FILE, STR_CUSTOM_WALLPAPER, STR_ELO_PATH_FOR_CUSTOM_ANIMATION, STR_SDCARD_ELO_DIR_PATH, VERIFY_TOKEN| Constructor and Description |
|---|
EloView() |
| Modifier and Type | Method and Description |
|---|---|
void |
getDeviceCloudStatus(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler)
This method returns device's online/offline status.
|
void |
getPlayContent(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler)
This method returns the type of content and name of the content set on the device.
|
void |
getPlayContentStatus(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler)
This method returns the status of play content on the device in control mode.
|
void |
setOfflinePlayContent(android.content.Context context,
java.lang.String accessToken,
java.lang.String packageName,
android.os.Handler handler)
This method is used to set content on the device in EloView control mode when device is offline or not registered to an account.
|
void |
switchToAndroidHomeMode(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler)
This method is used to switch to Android home mode from EloView mode.
|
void |
toggleBT(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler,
boolean isEnableBT)
This method is used to toggle the Bluetooth in Quicksettings (EloView mode).
|
void |
toggleWifi(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler,
boolean isEnableWifi)
This method is used to toggle the wifi in Quicksettings (EloView mode).
|
void |
unregisterEloViewAPIListener(android.content.Context context)
This method is used to unregister the broadcast receiver registered while using any of the EloView APIs.
Please make sure to call this in the "onPause" and "onDestroy" methods in your activity Lifecycle if you made use of any of the EloView APIs. |
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 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 final int SWITCH_TO_ANDROID_HOME_RESPONSE_CODE
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 EloView instance
public static final java.lang.String ACTION_STICKY_ANDROID_HOME_MODE
public void setOfflinePlayContent(android.content.Context context,
java.lang.String accessToken,
java.lang.String packageName,
android.os.Handler handler)
context - A context object of the calling Class (Activity/Service).accessToken - online token or offline JWT TokenpackageName - Package to be set as default content on the device.handler - A handler to receive one of the following callback messages:
OFFLINE_PLAY_CONTENT_CODE
AccountManager.TOKEN_VERIFY_FAIL
Consts.GENERIC_ERROR
public void getPlayContent(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler)
context - A context object of the calling Class (Activity/Service).accessToken - online token or offline JWT Tokenhandler - A handler to receive one of the following callback messages:
OFFLINE_PLAY_CONTENT_CODE
AccountManager.TOKEN_VERIFY_FAIL
Consts.GENERIC_ERROR
public void getPlayContentStatus(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler)
context - A context object of the calling Class (Activity/Service).accessToken - online token or offline JWT Tokenhandler - A handler to receive one of the following callback messages:
OFFLINE_PLAY_CONTENT_CODE
AccountManager.TOKEN_VERIFY_FAIL
Consts.GENERIC_ERROR
public void unregisterEloViewAPIListener(android.content.Context context)
context - Context in which the system APIs were usedpublic void getDeviceCloudStatus(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler)
context - A context object of the calling Class (Activity/Service).accessToken - online token or offline JWT Tokenhandler - A handler to receive one of the following callback messages:
AccountManager.TOKEN_VERIFY_FAIL
Consts.GENERIC_ERROR
public void toggleWifi(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler,
boolean isEnableWifi)
context - A context object of the calling Class (Activity/Service).accessToken - Offline Tokenhandler - A handler to receive one of the following callback messages:
QS_WIFI_RESPONSE_CODE
AccountManager.TOKEN_VERIFY_FAIL
Consts.GENERIC_ERROR
public void switchToAndroidHomeMode(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler)
context - A context object of the calling Class (Activity/Service).accessToken - An offline JWT token.handler - A handler to receive one of the following callback messages:
AccountManager.TOKEN_VERIFY_FAIL
Consts.GENERIC_ERROR
SWITCH_TO_ANDROID_HOME_RESPONSE_CODE
public void toggleBT(android.content.Context context,
java.lang.String accessToken,
android.os.Handler handler,
boolean isEnableBT)
context - A context object of the calling Class (Activity/Service).accessToken - Offline Tokenhandler - A handler to receive one of the following callback messages:
QS_WIFI_RESPONSE_CODE
AccountManager.TOKEN_VERIFY_FAIL
Consts.GENERIC_ERROR