getDrone

fun getDrone(@NonNull uid: String): Drone

Gets a drone by uid.

Return

the drone with the requested uid, or null if there is no drone with such uid

Parameters

uid

uid of the requested drone

fun getDrone(@NonNull uid: String, @NonNull listener: GroundSdk.OnDeviceRemovedListener): Drone

Gets a drone by uid.

Return

the drone with the requested uid, or null if there is no drone with such uid

Parameters

uid

uid of the requested drone

listener

called back when the requested drone disappears. Never called if the requested drone does not exist (i.e. when this method returns null).