DeviceSettingsRequest class

An object for redirecting a User to an Android device's settings screen from a DeviceSettings request.

This object contains meta-data about the device (manufacturer, model, version) in addition to a flag seen to let you know if you've already shown some particular screen to the user. lastSeenAt lets you know the DateTime you last showed a particular screen to the user.

Constructors

DeviceSettingsRequest({required String action, required String manufacturer, required String model, required String version, required bool seen, required int lastSeenAt})

Properties

action String
The settings screen to be shown (eg: DeviceSettings.IGNORE_BATTERY_OPTIMIZATIONS, DeviceSettings.POWER_MANAGER).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lastSeenAt DateTime?
The DateTime you last showed this screen to the user.
getter/setter pair
manufacturer String
Device manufacturer.
getter/setter pair
model String
Device model
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seen bool
Flag showing whether you've already shown this screen to the user.
getter/setter pair
version String
OS version
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map
Return info as Map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited