RRCaptureSessionRotationEvent

Objective-C

@interface RRCaptureSessionRotationEvent : RRCaptureSessionEvent

Swift

class RRCaptureSessionRotationEvent : RRCaptureSessionEvent

Capture event that signals an update of the device rotation

  • Defines updated horizontal rotation angle

    Declaration

    Objective-C

    @property (nonatomic) double rotationAngle;

    Swift

    var rotationAngle: Double { get set }
  • Represents an array of captured positions flags for every sector on round stage

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSNumber *> *capturedFlags;

    Swift

    var capturedFlags: [NSNumber]! { get set }
  • Initializes RRCaptureSessionRotationEvent of Rotation type

    Declaration

    Objective-C

    + (RRCaptureSessionRotationEvent *)rotationEventWithAngle:(double)rotationAngle
                                                capturedFlags:
                                                    (NSArray<NSNumber *> *)flags;

    Swift

    /*not inherited*/ init!(angle rotationAngle: Double, capturedFlags flags: [NSNumber]!)

    Parameters

    rotationAngle

    current horizontal rotation with origin in session start

    Return Value

    rotation event