PTAnnotStyleViewControllerDelegate
@protocol PTAnnotStyleViewControllerDelegate <NSObject>
The methods declared by the PTAnnotStyleViewControllerDelegate protocol allow the adopting delegate to respond to messages from the AnnotStyleViewController class.
-
Informs the delegate when the annotation style has been committed by the user.
Declaration
Objective-C
- (void)annotStyleViewController: (nonnull PTAnnotStyleViewController *)annotStyleViewController didCommitStyle:(nonnull PTAnnotStyle *)annotStyle;
Swift
func annotStyleViewController(_ annotStyleViewController: PTAnnotStyleViewController, didCommit annotStyle: PTAnnotStyle)
-
Allows the delegate to adjust the minimum value for the given annotation style and style key.
Declaration
Objective-C
- (void)annotStyleViewController: (nonnull PTAnnotStyleViewController *)annotStyleViewController minimumValue:(inout nonnull CGFloat *)minimumValue forStyle:(nonnull PTAnnotStyle *)annotStyle key:(nonnull PTAnnotStyleKey)styleKey;
Swift
optional func annotStyleViewController(_ annotStyleViewController: PTAnnotStyleViewController, minimumValue: UnsafeMutablePointer<CGFloat>, for annotStyle: PTAnnotStyle, key styleKey: PTAnnotStyleKey)
-
Allows the delegate to adjust the maximum value for the given annotation style and style key.
Declaration
Objective-C
- (void)annotStyleViewController: (nonnull PTAnnotStyleViewController *)annotStyleViewController maximumValue:(inout nonnull CGFloat *)maximumValue forStyle:(nonnull PTAnnotStyle *)annotStyle key:(nonnull PTAnnotStyleKey)styleKey;
Swift
optional func annotStyleViewController(_ annotStyleViewController: PTAnnotStyleViewController, maximumValue: UnsafeMutablePointer<CGFloat>, for annotStyle: PTAnnotStyle, key styleKey: PTAnnotStyleKey)
-
Allows the delegate to adjust the available base unit scale values for the given annotation style and style key
Declaration
Objective-C
- (nonnull NSArray<PTMeasurementUnitType> *) annotStyleViewController: (nonnull PTAnnotStyleViewController *)annotStyleViewController scaleUnitsForStyle:(nonnull PTAnnotStyle *)annotStyle key:(nonnull PTAnnotStyleKey)styleKey;
Swift
optional func annotStyleViewController(_ annotStyleViewController: PTAnnotStyleViewController, scaleUnitsFor annotStyle: PTAnnotStyle, key styleKey: PTAnnotStyleKey) -> [PTMeasurementUnitType]
-
Allows the delegate to adjust the available translate unit scale values for the given annotation style and style key
Declaration
Objective-C
- (nonnull NSArray<PTMeasurementUnitType> *) annotStyleViewController: (nonnull PTAnnotStyleViewController *)annotStyleViewController translateScaleUnitsForStyle:(nonnull PTAnnotStyle *)annotStyle key:(nonnull PTAnnotStyleKey)styleKey;
Swift
optional func annotStyleViewController(_ annotStyleViewController: PTAnnotStyleViewController, translateScaleUnitsFor annotStyle: PTAnnotStyle, key styleKey: PTAnnotStyleKey) -> [PTMeasurementUnitType]
-
Allows the delegate to adjust the available precision levels for the given annotation style and style key. The array entries should be NSNumbers of integer type.
Declaration
Objective-C
- (nonnull NSArray<NSNumber *> *) annotStyleViewController: (nonnull PTAnnotStyleViewController *)annotStyleViewController precisionValuesForStyle:(nonnull PTAnnotStyle *)annotStyle key:(nonnull PTAnnotStyleKey)styleKey;
Swift
optional func annotStyleViewController(_ annotStyleViewController: PTAnnotStyleViewController, precisionValuesFor annotStyle: PTAnnotStyle, key styleKey: PTAnnotStyleKey) -> [NSNumber]
-
Allows the delegate to adjust the available fractional precision levels for the given annotation style and style key. The array entries should be NSNumbers of integer type which represent the denominator of the fraction. e.g. [NSNumber numberWithInt:16] represents 1/16.
Declaration
Objective-C
- (nonnull NSArray<NSNumber *> *) annotStyleViewController: (nonnull PTAnnotStyleViewController *)annotStyleViewController fractionalPrecisionValuesForStyle:(nonnull PTAnnotStyle *)annotStyle key:(nonnull PTAnnotStyleKey)styleKey;
Swift
optional func annotStyleViewController(_ annotStyleViewController: PTAnnotStyleViewController, fractionalPrecisionValuesFor annotStyle: PTAnnotStyle, key styleKey: PTAnnotStyleKey) -> [NSNumber]
-
Informs the delegate when the annotation style has been changed by the user.
Declaration
Objective-C
- (void)annotStyleViewController: (nonnull PTAnnotStyleViewController *)annotStyleViewController didChangeStyle:(nonnull PTAnnotStyle *)annotStyle;
Swift
optional func annotStyleViewController(_ annotStyleViewController: PTAnnotStyleViewController, didChange annotStyle: PTAnnotStyle)