Skip to main content

SwarmMissionManager

class SwarmMissionManager

Description: Bee colony task management class

method enterMission

    fun enterMission(callback: CommonCallbacks.CompletionCallbackWithParam<Void>)

Description: Swarm Missions: Required before starting the mission

Input parameters: callback: completion detection

Output parameters: None。

Related parameters: None。

method uploadMissionFile

    fun uploadMissionFile(missionFilePath: String, callback: CommonCallbacks.CompletionCallbackWithProgress<Double>)

Description: Bee colony task upload and execute task file

Input parameters: missionFilePath: local file directory callback: completion detection

Output parameters: None。

Related parameters: None。

method startMission

    fun startMission(
missionInfo: MissionInfoJNI,
callback: CommonCallbacks.CompletionCallbackWithProgressAndParam<Void>
)

Description: Swarm Quest: Start the mission

Input parameters: missionInfo: task description class callback: completion detection

Output parameters: None。

Related parameters: None。

method pauseMission

    fun pauseMission(callback: CommonCallbacks.CompletionCallbackWithParam<Void>) 

Description: Swarm task: Task execution paused

Input parameters: callback: completion detection

Output parameters: None。

Related parameters: None。

method resumeMission

    fun resumeMission(param: MissionSwarmInfoBean, callback: CommonCallbacks.CompletionCallbackWithParam<Void>)

Description: Bee Swarm Mission: Task Resume Execution

Input parameters: callback: completion detection

Output parameters: None。

Related parameters: None。

method stopMission

    fun stopMission(callback: CommonCallbacks.CompletionCallbackWithParam<Void>)

Description: Bee swarm task: the task is stopped, when a new execution is executed, if the previous execution has already started, the previous task needs to be stopped

Input parameters: callback: completion detection

Output parameters: None。

Related parameters: None。

method exitMission

    fun exitMission(callback: CommonCallbacks.CompletionCallbackWithParam<Void>)

Description: Swarm Quest: Exit Quest

Input parameters: callback: completion detection

Output parameters: None。

Related parameters: None。

method addSwarmMissionStateListener

    fun addSwarmMissionStateListener(listener: CommonCallbacks.KeyListener<MissionSwarmStatusNtfyBean>)

Description: Bee colony task: add status information report monitoring

Input parameters: listener: key listener od mission way points status report notify

Output parameters: None。

Related parameters: None。

method removeSwarmMissionExecuteStateListener

    fun removeSwarmMissionExecuteStateListener(listener: CommonCallbacks.KeyListener<MissionSwarmStatusNtfyBean>)

Description: Bee colony tasks: remove task execution status monitoring

Input parameters: listener: key listener od mission way points status report notify

Output parameters: None。

Related parameters: None。

method addSwarmUploadStateListener

    fun addSwarmUploadStateListener(listener: CommonCallbacks.KeyListener<MissionSwarmUploadFileNtfyBean>)

Description: Bee colony task: add upload status report monitoring

Input parameters: listener: key listener od mission way points status report notify

Output parameters: None。

Related parameters: None。

method removeSwarmUploadStateListener

    fun removeSwarmUploadStateListener(listener: CommonCallbacks.KeyListener<MissionSwarmUploadFileNtfyBean>)

Description: Bee swarm task: remove upload status report listener

Input parameters: listener: key listener od mission way points status report notify

Output parameters: None。

Related parameters: None。