Package com.castlabs.sdk.claws
Interface ClawsServiceListener
- All Known Implementing Classes:
AbstractClawsServiceListener
public interface ClawsServiceListener
Interface for receiving callbacks from the ClawsService.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonAction(JSONObject action) Called when an action is received.voidonBinderAvailable(ClawsServiceBinder binder) Called when the ClawsServiceBinder is available.voidonDeviceListUpdated(List<Device> connectedDevices) Called when the list of connected devices is updated.voidCalled when an error occurs.voidonTransferRequested(String assetId, long positionMs, Device sourceDevice) Called when a transfer is requested.
-
Method Details
-
onError
Called when an error occurs.- Parameters:
message- The error message.
-
onDeviceListUpdated
Called when the list of connected devices is updated.- Parameters:
connectedDevices- The list of connected devices.
-
onAction
Called when an action is received.- Parameters:
action- The action that was received.
-
onBinderAvailable
Called when the ClawsServiceBinder is available.- Parameters:
binder- The ClawsServiceBinder.
-
onTransferRequested
Called when a transfer is requested.- Parameters:
assetId- The ID of the asset to transfer.positionMs- The position in milliseconds to start the transfer from.sourceDevice- The device to transfer the asset from.
-