MethodChannelNothingGlyphInterface class

An implementation of NothingGlyphInterfacePlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

animate() Future<void>
Used for animating a breathing animation using the parameters of channels, period, and interval set in the GlyphFrame.
override
buildGlyphFrame(List<Map<String, int?>> operations) Future<void>
Allows the user to build more complex GlyphFrames.
override
displayProgress(int progress, {bool reverse = false}) Future<void>
Used to display a progress value on C1 / D1.
override
displayProgressAndToggle(int progress, {bool reverse = false}) Future<void>
Used to simultaneously toggle all Glyphs except C1 / D1 and display the progress value on C1 / D1.
override
getChannel() Future<List<int>?>
Returns the array of Glyph channels that are included in the GlyphFrame.
override
getCycles() Future<int?>
Returns the number of cycles the GlyphFrame is to be turned on for.
override
getInterval() Future<int?>
Returns the interval between cycles.
override
getPeriod() Future<int?>
Returns the duration of the GlyphFrame is to be turned on, measured in milliseconds.
override
getPlatformVersion() Future<String?>
override
init() Future<void>
override
initCallbacks(dynamic serviceConnection(bool connected)) → void
override
is20111() Future<bool?>
Returns true if the device is a 20111 aka NothingPhone1
override
is22111() Future<bool?>
Returns true if the device is a 22111 aka NothingPhone2
override
is23111() Future<bool?>
Returns true if the device is a 23111 aka NothingPhone2a
override
is23113() Future<bool?>
Returns true if the device is a 23113 aka NothingPhone2aPlus
override
is24111() Future<bool?>
Returns true if the device is a is24111 aka NothingPhone3a and NothingPhone3aPro
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toggle() Future<void>
Used to enable/disable the channels set in the GlyphFrame.
override
toString() String
A string representation of this object.
inherited
turnOff() Future<void>
Used to turn off any showing glyph.
override

Operators

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