Support Home > SDK Integration > SDK – KochavaTracker > Class – KochavaTracker > Designated Instance Method – initWithParametersDictionary:delegate:

Designated Instance Method – initWithParametersDictionary:delegate:

  • Designated Instance Method

    init?(parametersDictionary:delegate:)

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


    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 designated initializer then you do not need to call the configuration 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 class’ application(_:didFinishLaunchingWithOptions:) method.

    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.

    func configure(withParametersDictionary: [AnyHashable: Any], delegate: KochavaTrackerDelegate?)

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

  • Designated Instance Method

    initWithParametersDictionary:delegate:

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


    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 designated initializer then you do not need to call the configuration 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 class’ application:didFinishLaunchingWithOptions: method.

    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.

    configureWithParametersDictionary:delegate:

    The designated configuration method for a KochavaTracker. This method is used to configure the KochavaTracker shared instance for use.

 
 

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