SCAdEnvironment

@interface SCAdEnvironment : NSObject

This class is used to specify certain environment variables like desired bitrate, deviceType and screenSize

  • Specify device type.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) DeviceType deviceType;
  • Specify network reachability

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NetworkReachability reachability;
  • Use a desiredBitrate, which overwrites bitrate calculation

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger desiredBitrate;
  • Value of the screenSize (if not specified, the values of the current device will be used)

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGSize screenSize;
  • Desired mime types. Pass as array of strings

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSArray *_Nonnull desiredMimeTypes;
  • Set/Get your macro settings here

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) SCAdMacros *_Nonnull macros;
  • Unavailable

    Not available here

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Default initializer

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMacros:(nonnull SCAdMacros *)macros;