SVSConfiguration

@interface SVSConfiguration : NSObject

This class hold the global configuration of the SDK. All methods called here will impact the whole Video SDK.

  • The shared instance of the SVSConfiguration object.

    Declaration

    Objective-C

    @property (readonly, nonatomic, class) SVSConfiguration *_Nonnull sharedInstance;
  • Configure the SDK for a given siteID. This will customize the SDK behavior for your site ID: for example retrieving automatically your baseURL for faster ad requests, enable specific logging, etc…

    Note

    This method MUST be called before performing any Ad request and only once per Application’s lifecycle. Make sure you call this method in the application:didFinishLaunchingWithOptions: method of your application’s delegate.

    Declaration

    Objective-C

    - (void)configureWithSiteID:(NSUInteger)siteID;

    Parameters

    siteID

    The siteID for your application in Manage interface. Contact your account manager if you have trouble finding this ID.

  • true if the SDK needs to display debug informations in the Xcode console, false otherwise.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL loggingEnabled;
  • true if location information can be used automatically by the SDK (if available), false otherwise.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL allowAutomaticLocationDetection;
  • Coordinate that will be used instead of the actual device location (for testing purpose for instance), kCLLocationCoordinate2DInvalid otherwise (default value).

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CLLocationCoordinate2D manualLocation;
  • true if a temporary transient ID can be used if the advertising ID is not available, false otherwise.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL transientIDEnabled;
  • true if the device identifier should be hashed, false otherwise.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL identifierHashing;
  • The custom identifier for this device. Setting this property will override the IDFA or DNTID of this device when requesting an Ad.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *customIdentifier;
  • The ad rules that will be used for any ad player where ad rules are not specified. Default rule for finite duration content is one preroll ad and one postroll ad. Default rule for live content is one preroll ad.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) SVSAdRules *_Nonnull defaultAdRules;
  • The ad player configuration that will be used for any ad player where ad player configuration is not specified.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        SVSAdPlayerConfiguration *_Nonnull defaultAdPlayerConfiguration;
  • The bundle for localized strings - See documentation for keys. By default the strings of the framework bundle will be used.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSBundle *_Nonnull stringsBundle;
  • The baseURL for ad calls.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSURL *_Nonnull baseURL;
  • The siteID associated with this SDK configuration.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger siteID;
  • The networkID associated with this SDK configuration.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger networkID;
  • The version of the Video SDK.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull version;