appium-android-driver
Version:
Android UiAutomator and Chrome support for Appium
19 lines • 863 B
TypeScript
import type { AndroidDriver } from '../driver';
declare const SUPPORTED_ACTIONS: {
readonly ENABLE: "enable";
readonly DISABLE: "disable";
readonly UNPAIR_ALL: "unpairAll";
};
/**
* Performs the requested action on the default bluetooth adapter
*
* @param action The action to perform: 'enable', 'disable', or 'unpairAll'.
* @returns Promise that resolves when the action is completed.
* @throws {Error} If the device under test has no default bluetooth adapter
* or there was a failure while performing the action.
* @throws {errors.InvalidArgumentError} If the action is not one of the supported actions.
*/
export declare function mobileBluetooth(this: AndroidDriver, action: BluetoothAction): Promise<void>;
type BluetoothAction = typeof SUPPORTED_ACTIONS[keyof typeof SUPPORTED_ACTIONS];
export {};
//# sourceMappingURL=bluetooth.d.ts.map