PTFeatureGate

@interface PTFeatureGate : NSObject <PTOverridable>

/**
 * The global instance of the shared tools settings manager.
 */
@property (nonatomic, class, readonly, strong) PTFeatureGate *sharedInstance;

-(BOOL)isAvailable:(NSString*)featureID;

- (void)handleFeature:(NSString *)featureID onController:(UIViewController*)controller;

- (NSString *)proButtonTitleForTitle:(NSString *)title forFeature:(NSString *)featureID;

- (UIImageView *)proImageViewWithTintColor:(nullable UIColor *)tintColor;

- (UIImage *)unavailableIndicatorImage;

- (UIImage *)unavailableIconImage;

- (void)didUpdateAvailability;

@property (nonatomic, weak, nullable) id<PTFeatureGateDelegate> delegate;

@end

Undocumented

  • The global instance of the shared tools settings manager.

    Declaration

    Objective-C

    @property (class, nonatomic, strong, readonly) PTFeatureGate *_Nonnull sharedInstance;

    Swift

    class var sharedInstance: PTFeatureGate { get }
  • Undocumented

    Declaration

    Objective-C

    -(BOOL)isAvailable:(NSString*)featureID;

    Swift

    func isAvailable(_ featureID: String) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (void)handleFeature:(NSString *)featureID onController:(UIViewController*)controller;

    Swift

    func handleFeature(_ featureID: String, on controller: UIViewController)
  • Undocumented

    Declaration

    Objective-C

    - (NSString *)proButtonTitleForTitle:(NSString *)title forFeature:(NSString *)featureID;

    Swift

    func proButtonTitle(forTitle title: String, forFeature featureID: String) -> String
  • Undocumented

    Declaration

    Objective-C

    - (UIImageView *)proImageViewWithTintColor:(nullable UIColor *)tintColor;

    Swift

    func proImageView(withTintColor tintColor: UIColor?) -> UIImageView
  • Undocumented

    Declaration

    Objective-C

    - (UIImage *)unavailableIndicatorImage;

    Swift

    func unavailableIndicatorImage() -> UIImage
  • Undocumented

    Declaration

    Objective-C

    - (UIImage *)unavailableIconImage;

    Swift

    func unavailableIconImage() -> UIImage
  • Undocumented

    Declaration

    Objective-C

    - (void)didUpdateAvailability;

    Swift

    func didUpdateAvailability()
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<PTFeatureGateDelegate> delegate

    Swift

    weak var delegate: (any PTFeatureGateDelegate)? { get set }