Preparing search index...

    Class BatteryStateArgs

    Stores the battery level and charging state of the device. Used as argument with the onBatteryStateChanged event.

    Lens Scripting Version 364

    Hierarchy (View Summary)

    Index

    Properties

    batteryLevel: number

    The current battery level of the device, represented as a percentage (0-100).

    Lens Scripting Version 364

    isCharging: boolean

    Indicates whether the device is currently charging.

    Lens Scripting Version 364

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean