akiles-react-native
    Preparing search index...

    Interface ActionOptions

    Options used to configure the behavior of the action method.

    interface ActionOptions {
        requestBluetoothPermission?: boolean;
        requestLocationPermission?: boolean;
        useBluetooth?: boolean;
        useInternet?: boolean;
    }
    Index

    Properties

    requestBluetoothPermission?: boolean

    Whether to request Bluetooth permission if needed.

    This controls the behavior when the app hasn't been granted Bluetooth permissions yet:

    • If false, the Bluetooth communication method immediately errors with BLUETOOTH_PERMISSION_NOT_GRANTED.
    • If true, the SDK will try to request the permission from the user and wait for a response. If granted, it carries on with the action. If not granted or it couldn't be requested, it errors with BLUETOOTH_PERMISSION_NOT_GRANTED. The permission can't be requested if the user has denied it twice, or if the PermissionRequester returns false.

    Default: true.

    requestLocationPermission?: boolean

    Whether to request location permission if needed.

    This controls the behavior when the app hasn't been granted location permissions yet:

    • If false, the internet communication method immediately errors with LOCATION_PERMISSION_NOT_GRANTED.
    • If true, the SDK will try to request the permission from the user and wait for a response. If granted, it carries on with the action. If not granted or it couldn't be requested, it.errors with LOCATION_PERMISSION_NOT_GRANTED. The permission can't be requested if the user has denied it twice, or if the PermissionRequester returns false.

    Default: true.

    useBluetooth?: boolean

    Whether to try using the Bluetooth communication method.

    If false, it immediately errors with CANCELED.

    Default: true.

    useInternet?: boolean

    Whether to try using the internet communication method.

    If false, it immediately errors with CANCELED.

    Default: true.