DjiHostApi class Null safety
Constructors
- DjiHostApi({BinaryMessenger? binaryMessenger})
-
Constructor for DjiHostApi. The
binaryMessenger
named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
connectDrone(
) → Future< void> - Connects with the DJI Drone. [...]
-
delegateDrone(
) → Future< void> - Starts Listening to DJI Drone status changes. [...]
-
deleteAllMedia(
) → Future< void> - Deletes all media files from the Drone. [...]
-
disconnectDrone(
) → Future< void> - Disconnects from the DJI Drone. [...]
-
downloadAllMedia(
) → Future< void> - Downloads all media files from the Drone. [...]
-
getBatteryLevel(
) → Future< Battery> - Gets the battery level. [...]
-
getPlatformVersion(
) → Future< Version> - Gets the platform version. [...]
-
land(
) → Future< void> - Triggers the DJI Drone Land action. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
registerApp(
) → Future< void> - Registers the app at DJI. [...]
-
start(
String arg_flightJson) → Future< void> - Starts the DJI Drone Flight Timeline. [...]
-
takeOff(
) → Future< void> - Triggers the DJI Drone Land action. [...]
-
timeline(
) → Future< void> -
Triggers the DJI Drone pre-defined Timeline.
@Deprecated('Use [start] instead.')
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Constants
-
codec
→ const MessageCodec<
Object?> -
_DjiHostApiCodec()