Native Power State Widget

Content Type: Widget
Categories: Mobile

Overview

Access the power state (unplugged, charging, full) of the device and get notified of changes.

Documentation

NativePowerState

Access the power state of the device and get notified of changes.

Features

Access the power state of the device and receive notification when the device gets plugged in or unplugged from a charger. On iOS, you can also tell whether the device is fully charged.

Usage

  • Put the widget on your page
  • Use a nanoflow as the action to perform when the power state changes. it can receive the power state as string

Useful to perform actions only when you know the device is charging. Like a barcode scanner that is put on its charger for the night. Keep the app running and synchronize data when the device is not in use.

Possible values:

  • unknown
  • unplugged
  • charging
  • full

Releases

Version: 5.0.0
Framework Version: 10.21.0
Release Notes: Mendix 10.21. Use action variable
Version: 4.0.0
Framework Version: 10.17.0
Release Notes: Mendix 10.17
Version: 3.0.0
Framework Version: 10.13.1
Release Notes: Update the native dependency to match the version used in Mendix 10.13
Version: 2.1.0
Framework Version: 10.12.3
Release Notes: Mendix 10.12
Version: 2.0.0
Framework Version: 9.24.2
Release Notes: Update dependencies to match NativeMobileResources update
Version: 1.0.0
Framework Version: 9.18.2
Release Notes: Initial release