appium-xcuitest-driver
Version:
Appium driver for iOS using XCUITest for backend
105 lines • 2.83 kB
TypeScript
/**
* Mapping of permission resource name to identifier.
* @see https://developer.apple.com/documentation/xctest/xcuiprotectedresource?language=objc
*/
export declare enum PermissionService {
calendar = 2,
camera = 6,
contacts = 1,
health = -1073741827,
homekit = 8,
keyboardnet = -1073741825,
location = -1073741826,
medialibrary = 7,
microphone = 5,
photos = 4,
reminders = 3,
systemroot = 1073741824,
userdesktop = 1073741825,
userdocuments = 1073741827,
userdownloads = 1073741826,
bluetooth = -1073741824
}
/**
* @see https://developer.apple.com/documentation/corelocation/clauthorizationstatus
*/
export declare enum AuthorizationStatus {
notDetermined = 0,
restricted = 1,
denied = 2,
authorizedAlways = 3,
authorizedWhenInUse = 4
}
/**
* Thermal state of an iOS device.
*
* Returned (since iOS 11.0) within a {@linkcode DeviceInfo} response.
* @see https://developer.apple.com/documentation/foundation/nsprocessinfothermalstate
*/
export declare enum ThermalState {
/**
* The thermal state is within normal limits.
*/
NSProcessInfoThermalStateNominal = 0,
/**
* The thermal state is slightly elevated.
*/
NSProcessInfoThermalStateFair = 1,
/**
* The thermal state is high.
*/
NSProcessInfoThermalStateSerious = 2,
/**
* The thermal state is significantly impacting the performance of the system and the device needs to cool down.
*/
NSProcessInfoThermalStateCritical = 3
}
/**
* Application state code.
* @see https://developer.apple.com/documentation/xctest/xcuiapplicationstate?language=objc
*/
export declare enum AppState {
/**
* The application's current state is not known.
*/
XCUIApplicationStateUnknown = 0,
/**
* The application is not running
*/
XCUIApplicationStateNotRunning = 1,
/**
* The application is running in the background, but is suspended.
*/
XCUIApplicationStateRunningBackgroundSuspended = 2,
/**
* The application is running in the background.
*/
XCUIApplicationStateRunningBackground = 3,
/**
* The application is running in the foreground.
*/
XCUIApplicationStateRunningForeground = 4
}
/**
* Battery state
* @see {@linkcode BatteryInfo}
*/
export declare enum BatteryState {
/**
* The battery state is unknown.
*/
UIDeviceBatteryStateUnknown = 0,
/**
* The device is running on battery and discharging.
*/
UIDeviceBatteryStateUnplugged = 1,
/**
* The device is plugged in, less than 100%, and charging.
*/
UIDeviceBatteryStateCharging = 2,
/**
* The device is plugged in and is at 100% charge.
*/
UIDeviceBatteryStateFull = 3
}
//# sourceMappingURL=enum.d.ts.map