QualarooConfiguration

@interface QualarooConfiguration : NSObject

This object provides a set of properties to control various policies of the Qualaroo Mobile. Other than API key, these properties can be changed at any time.

  • Create and returns a configuration with default settings and the given API key

    Declaration

    Objective-C

    + (nullable instancetype)configurationWithAPIKey:(NSString *_Nonnull)apiKey
                                               error:(NSError *_Nullable *_Nullable)
                                                         outError;

    Swift

    convenience init(apiKey: String) throws

    Parameters

    apiKey

    Your the API key from https://qualaroo.com

    error

    A pointer to an NSError. In case init fails, an error will be returned.

  • Your the API key from qualaroo.com

    Note

    Readonly

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSString *apiKey;

    Swift

    var apiKey: String { get }
  • Whether the Qualaroo client should automatically make a screen call when a view controller is added to a view hierarchy. Because the underlying implementation uses method swizzling, we recommend initializing the Qualaroo client as early as possible (before any screens are displayed), ideally during the Application delegate’s applicationDidFinishLaunching method.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL autoScreenView;

    Swift

    var autoScreenView: Bool { get set }
  • The attachment position that will be using for display a survey (- see: QualarooSurveyPosition for supported position).

    The default is the QualarooSurveyPositionBottom.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) QualarooSurveyPosition position;

    Swift

    var position: QualarooSurveyPosition { get set }
  • Identifier Code based on the string.

    The default is the UUIDString

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *identifier;

    Swift

    var identifier: String? { get set }
  • Blur effect for the background.

    The default is the UIBlurEffectStyleLight.

    Note

    It will only work on iPhone

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIBlurEffectStyle blurEffectStyle;

    Swift

    var blurEffectStyle: Int32 { get set }
  • Background transparency.

    You can use from 0 to 1. The default is the 0.5.

    Note

    It will only work on iPhone

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat blurAlpha;

    Swift

    var blurAlpha: CGFloat { get set }