public class DeviceOperations extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
forget()
Forget the current device.
|
void |
forget(Callback<Void> callback)
Forget the current device.
|
void |
forget(String deviceKey)
Forget the device identified by the deviceKey.
|
void |
forget(String deviceKey,
Callback<Void> callback)
Forget the device identified by the deviceKey.
|
Device |
get()
Retrieves the device information for this device.
|
void |
get(Callback<Device> callback)
Retrieves the device information for this device.
|
Device |
get(String deviceId)
Retrieves the device information for the device id provided.
|
void |
get(String deviceId,
Callback<Device> callback)
Retrieves the device information for the device id provided.
|
ListDevicesResult |
list()
Lists the devices attached to the user's account.
|
void |
list(Callback<ListDevicesResult> callback)
Lists the devices attached to the user's account.
|
ListDevicesResult |
list(Integer limit,
String paginationToken)
Lists the devices attached to the user's account.
|
void |
list(Integer limit,
String paginationToken,
Callback<ListDevicesResult> callback)
Lists the devices attached to the user's account.
|
void |
updateStatus(boolean rememberDevice)
Update this device status to be remembered or not remembered
|
void |
updateStatus(boolean rememberDevice,
Callback<Void> callback)
Update this device status to be remembered or not remembered
|
void |
updateStatus(String deviceKey,
boolean rememberDevice)
Update the device status to be remembered or not remembered
|
void |
updateStatus(String deviceKey,
boolean rememberDevice,
Callback<Void> callback) |
public Device get() throws Exception
Exceptionpublic Device get(String deviceId) throws Exception
Exceptionpublic void get(String deviceId, Callback<Device> callback)
public ListDevicesResult list() throws Exception
Exceptionpublic void list(Callback<ListDevicesResult> callback)
public ListDevicesResult list(Integer limit, String paginationToken) throws Exception
limit - the number of devices to return per page. Max allows by service is 60.paginationToken - the string returned by a previous list call to fetched the next
page of results.Exceptionpublic void list(Integer limit, String paginationToken, Callback<ListDevicesResult> callback)
limit - the number of devices to return per page. Max allows by service is 60.paginationToken - the string returned by a previous list call to fetched the next
page of results.public void updateStatus(boolean rememberDevice)
throws Exception
rememberDevice - true to set the device as remembered, false otherwiseExceptionpublic void updateStatus(boolean rememberDevice,
Callback<Void> callback)
rememberDevice - true to set the device as remembered, false otherwiseExceptionpublic void updateStatus(String deviceKey, boolean rememberDevice) throws Exception
rememberDevice - true to set the device as remembered, false otherwiseExceptionpublic void updateStatus(String deviceKey, boolean rememberDevice, Callback<Void> callback)
public void forget()
throws Exception
updateStatus(boolean) after forget() will fail.
The user needs to sign-out and sign-in again to be able to update the device status.Exceptionpublic void forget(Callback<Void> callback)
updateStatus(boolean) after forget() will fail.
The user needs to sign-out and sign-in again to be able to update the device status.public void forget(String deviceKey) throws Exception
updateStatus(boolean) after forget() will fail.
The user needs to sign-out and sign-in again to be able to update the device status.deviceKey - the device identifierExceptionpublic void forget(String deviceKey, Callback<Void> callback)
updateStatus(boolean) after forget() will fail.
The user needs to sign-out and sign-in again to be able to update the device status.deviceKey - the device identifierCopyright © 2020. All rights reserved.