VPKEnvironment

@interface VPKEnvironment : NSObject
@property (nonatomic, strong) NSUserDefaults* userDefaults;
@property (nonatomic, strong) VPKUser* user;
@property (nonatomic, strong) VPKApp* app;
@property (nonatomic, strong) VPKDevice* device;
@property (nonatomic, strong) VPKSdk* sdk;



@property (nonatomic, assign) BOOL shouldMonetise;
@property (nonatomic, assign) BOOL production;
@property (nonatomic, assign, getter= isInitialized,readonly) BOOL initialized;
@property (nonatomic, assign, readonly) BOOL loggedIn;
@property (nonatomic, assign) BOOL forwardErrors;

+ (instancetype)shared;

/// Opt in to advertising-identifier collection (default NO). See +[VPKit sendIDFA:] for
/// the host app's App Store obligations.
- (void)sendIDFA:(BOOL)idfa;

/**
 The advertising identifier (IDFA) as an uppercase UUID string, or nil.

 Non-nil only when all of these hold: `sendIDFA:YES` was called, the device runs iOS 14.5+
 and `ATTrackingManager.trackingAuthorizationStatus` is `.authorized`, and the identifier is
 not the all-zero value. VPKit never presents the tracking prompt; the host app owns that.
 The installation UUID (`app.consumerId`) stays the primary consumer identifier.
 */
@property (nonatomic, copy, readonly) NSString* idfa;



@end

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSUserDefaults* userDefaults
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) VPKUser* user
  • app

    Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) VPKApp* app
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) VPKDevice* device
  • sdk

    Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) VPKSdk* sdk
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL shouldMonetise
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL production
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, getter= isInitialized, readonly) BOOL initialized
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL loggedIn
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL forwardErrors
  • Undocumented

    Declaration

    Objective-C

    + (instancetype)shared;
  • Opt in to advertising-identifier collection (default NO). See +[VPKit sendIDFA:] for the host app’s App Store obligations.

    Declaration

    Objective-C

    - (void)sendIDFA:(BOOL)idfa;
  • The advertising identifier (IDFA) as an uppercase UUID string, or nil.

    Non-nil only when all of these hold: sendIDFA:YES was called, the device runs iOS 14.5+ and ATTrackingManager.trackingAuthorizationStatus is .authorized, and the identifier is not the all-zero value. VPKit never presents the tracking prompt; the host app owns that. The installation UUID (app.consumerId) stays the primary consumer identifier.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *idfa;