MethodChannelWhistleLoopSdk class
An implementation of WhistleLoopSdkPlatform that uses method channels. This plugin provides easy access to essential device information, including the device ID, package name, IP address, device type, time, date, platform, and network connection type.
- Inheritance
-
- Object
- PlatformInterface
- WhistleLoopSdkPlatform
- MethodChannelWhistleLoopSdk
Constructors
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
-
getConnectionType(
) → Future< String> -
Retrieves the network connection type.
override
-
getDate(
) → Future< String> -
Retrieves the current date.
override
-
getDeviceType(
) → Future< String?> -
Retrieves the device type.
override
-
getIP(
) → Future< String> -
Retrieves the IP address.
override
-
getpac(
) → Future< String?> -
Retrieves the package name.
override
-
getPlatform(
) → Future< String> -
Retrieves the platform.
override
-
getPlatformVersion(
) → Future< String?> -
override
-
getTime(
) → Future< String> -
Retrieves the current time.
override
-
initDeviceId(
) → Future< String?> -
Initializes and retrieves the device ID.
override
-
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