UNPKG

scriptable-testlab

Version:

A lightweight, efficient tool designed to manage and update scripts for Scriptable.

42 lines (39 loc) 1.26 kB
import { AbsDevice } from 'scriptable-abstract'; import { DeviceMockState, DeviceScreen } from '../../types/device.mjs'; /** * Mock implementation of Scriptable's Device. * Provides access to device-specific information and functionality. */ declare class MockDevice extends AbsDevice<DeviceMockState> { static get instance(): MockDevice; constructor(); name(): string; systemName(): string; systemVersion(): string; model(): string; isPhone(): boolean; isPad(): boolean; screenSize(): DeviceScreen; screenResolution(): DeviceScreen; screenScale(): number; screenBrightness(): number; setScreenBrightness(value: number): void; isInPortrait(): boolean; isInPortraitUpsideDown(): boolean; isInLandscapeLeft(): boolean; isInLandscapeRight(): boolean; isFaceUp(): boolean; isFaceDown(): boolean; batteryLevel(): number; isDischarging(): boolean; isCharging(): boolean; isFullyCharged(): boolean; preferredLanguages(): string[]; locale(): string; language(): string; isUsingDarkAppearance(): boolean; volume(): number; setVolume(value: number): void; protected updateState(state: Partial<DeviceMockState>): void; } export { MockDevice };