SystemShortcuts class
You can use shortcuts like pressing home and back button programatically by calling home ( ) and back ( ) functions respectively.
You can also control volume keys by calling volUp ( ) and volDown ( ) to press volume Up button and volume Down button respectively.
You can change the orientation of your app by calling functions orientLandscape ( ) or orientPortrait ( ) to turn the app into landscape and portrait mode respectively.
You can toggle wifi and bluetooth as well using wifi ( ) and bluetooth ( ) functions respectively
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Static Methods
-
back(
) → Future< void> - Press back button programatically .
-
bluetooth(
) → Future< void> - Toggle bluetooth.
-
home(
) → Future< void> - Press home button programatically .
-
orientLandscape(
) → Future< void> - Change app orientation to landscape mode
-
orientPortrait(
) → Future< void> - Change app orientation to Portrait mode
-
volDown(
{AudioManger? streamType, bool? showVolumeUiFlag}) → Future< void> - Press Volume Down button programatically .
-
volUp(
{AudioManger? streamType, bool? showVolumeUiFlag}) → Future< void> - Press Volume Up button programatically .
-
wifi(
) → Future< void> - Toggle Wifi.