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 Type
  Method
  Description
  `void`
  `onAction(JSONObject action)`
  Called when an action is received.
  `void`
  `onBinderAvailable(ClawsServiceBinder binder)`
  Called when the ClawsServiceBinder is available.
  `void`
  `onDeviceListUpdated(List<Device> connectedDevices)`
  Called when the list of connected devices is updated.
  `void`
  `onError(String message)`
  Called when an error occurs.
  `void`
  `onTransferRequested(String assetId, long positionMs, Device sourceDevice)`
  Called when a transfer is requested.

- ## Method Details

  - ### onError

    void onError(String message)
    Called when an error occurs.
    Parameters:
      `message` - The error message.

  - ### onDeviceListUpdated

    void onDeviceListUpdated(List<Device> connectedDevices)
    Called when the list of connected devices is updated.
    Parameters:
      `connectedDevices` - The list of connected devices.

  - ### onAction

    void onAction(JSONObject action)
    Called when an action is received.
    Parameters:
      `action` - The action that was received.

  - ### onBinderAvailable

    void onBinderAvailable(ClawsServiceBinder binder)
    Called when the ClawsServiceBinder is available.
    Parameters:
      `binder` - The ClawsServiceBinder.

  - ### onTransferRequested

    void onTransferRequested(String assetId, long positionMs, Device sourceDevice)
    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.