class DJIPanoramaMissionOperator
@interface DJIPanoramaMissionOperator : NSObject
|
Header: | DJIPanoramaMissionOperator.h |
Inherits From: | NSObject |
Description:
The panorama mission operator is the only object that controls, runs and monitors Panorama Missions. It can be accessed from DJIMissionControl
.
Class Members:
property currentState
@property(nonatomic, readonly) DJIPanoramaMissionState currentState
|
Header: | DJIPanoramaMissionOperator.h |
Description:
The current state of the operator.
See Also:
DJIPanoramaMissionState
method addListenerToEvents:withQueue:andBlock
-(void)addListenerToEvents:(id)listener withQueue:(nullable dispatch_queue_t)queue andBlock:(DJIPanoramaMissionOperatorEventBlock)block
|
Header: | DJIPanoramaMissionOperator.h |
Description:
Adds listener to receive all events of the Panorama mission operator.
id listener | Listener that is interested in Panorama mission operator. |
nullable dispatch_queue_t queue | The dispatch queue that block will be called on. |
DJIPanoramaMissionOperatorEventBlock block | Block will be called when there is event updated. |
method removeListener
- (void)removeListener:(id)listener
|
Header: | DJIPanoramaMissionOperator.h |
Description:
Removes listener. The listener will not receive any update after calling this method.
id listener | Listener to be removed. |
method removeAllListeners
- (void)removeAllListeners
|
Header: | DJIPanoramaMissionOperator.h |
Description:
Remove all listeners.
method setupWithMode:withCompletion
- (void)setupWithMode:(DJIPanoramaMode)mode withCompletion:(DJICompletionBlock)completion
|
Header: | DJIPanoramaMissionOperator.h |
Description:
Sets up the Panorama mission with the specific mode. It can only be called when the currentState
is one of the following: If the setup starts successfully, currentState
will become DJIPanoramaMissionStateSettingUp
. Normally, it will take seconds to complete the setup. Once setup is completed successfully, currentState
will become DJIPanoramaMissionStateReadyToExecute
.
typedef block DJIPanoramaMissionOperatorEventBlock
typedef void (^DJIPanoramaMissionOperatorEventBlock)(DJIPanoramaMissionEvent *event)
|
Header: | DJIPanoramaMissionOperator.h |
Description:
Block to receive the Panorama mission operator event.
enum DJIPanoramaMissionState
typedef NS_ENUM(NSInteger, DJIPanoramaMissionState)
|
Header: | DJIPanoramaMissionOperator.h |
Description:
Panorama Mission State.
Enum Members:
DJIPanoramaMissionStateUnknown | The state of the operator is unknown. This is the initial state when the operator has just been created. |
DJIPanoramaMissionStateDisconnected | The connection between the mobile device and Osmo is broken. |
DJIPanoramaMissionStateNotSupported | The connected product does not support Panorama mission. |
DJIPanoramaMissionStateReadyToSetup | The operator is ready to setup a Panorama mission. |
DJIPanoramaMissionStateSettingUp | The operator is setting up for a Panorama mission. |
DJIPanoramaMissionStateReadyToExecute | The setup for the Panorama mission is complete. The operator is ready to start the execution. |
DJIPanoramaMissionStateExecuting | The operator is executing a Panorama mission. |
enum DJIPanoramaMode
typedef NS_ENUM (NSUInteger, DJIPanoramaMode)
|
Header: | DJIPanoramaMissionTypes.h |
Description:
Defines options for different types of modes for Panorama mission.
Enum Members:
DJIPanoramaModeFullCircle | 360 Degree Panorama mode. |
DJIPanoramaModeHalfCircle | 180 Degree Panorama mode. Also known as selfie mode. |
DJIPanoramaModeUnknown | Unknown mode. |