Support Home > SDK Integration > SDK – KochavaTracker > Class – KochavaTracker > Designated Configuration Instance Method – configure(withParametersDictionary:delegate:)

Designated Configuration Instance Method – configure(withParametersDictionary:delegate:)

  • Designated Configuration Instance Method

    configure(withParametersDictionary:delegate:)

    The designated configuration method for an instance of class KochavaTracker. This method is used to configure the provided shared instance for use.


    Declaration

    Parameters

    parametersDictionary A dictionary with the format of trackerParametersDictionary.
    delegate An optional KochavaTrackerDelegate.

    Discussion

    A KochavaTracker must be configured before it can be used. If you are using the provided shared instance then you must call this method to perform the configuration. If you are using the designated initializer then you do not need to call this method directly, as it is done from within the designated initializer.

    By initializing and configuring a KochavaTracker, you are completing the basic integration with a Kochava Tracker SDK. This should be done in the logic of your application where things first start up, such as in your UIApplicationDelegate instance method application(_:didFinishLaunchingWithOptions:).

    Requirement(s)

    A parametersDictionary must be provided, and at minimum it must contain a Kochava App GUID passed using the kKVAParamAppGUIDStringKey.

     

    Sample Code:

    See Also

    Related Symbols static var shared

    Returns a shared singleton KochavaTracker.

    init?(parametersDictionary: [AnyHashable: Any], delegate: KochavaTrackerDelegate?)

    The designated initialization method for a KochavaTracker. This method is used to configure a newly instantiated KochavaTracker for use when you are not using the provided shared instance.

  • Designated Configuration Instance Method

    configure(withParametersDictionary:delegate:)

    The designated configuration method for an instance of class KochavaTracker. This method is used to configure the provided shared instance for use.


    Declaration

    Parameters

    parametersDictionary A dictionary with the format of trackerParametersDictionary.
    delegate An optional KochavaTrackerDelegate.

    Discussion

    A KochavaTracker must be configured before it can be used. If you are using the provided shared instance then you must call this method to perform the configuration. If you are using the designated initializer then you do not need to call this method directly, as it is done from within the designated initializer.

    By initializing and configuring a KochavaTracker, you are completing the basic integration with a Kochava Tracker SDK. This should be done in the logic of your application where things first start up, such as in your UIApplicationDelegate instance method application:didFinishLaunchingWithOptions:.

    Requirement(s)

    A parametersDictionary must be provided, and at minimum it must contain a Kochava App GUID passed using the kKVAParamAppGUIDStringKey.

     

    Sample Code:

    See Also

    Related Symbols + shared

    Returns a shared singleton KochavaTracker.

    – initWithParametersDictionary:delegate:

    The designated initialization method for a KochavaTracker. This method is used to configure a newly instantiated KochavaTracker for use when you are not using the provided shared instance.

 
 

Last Modified: Jul 12, 2018 at 8:04 am