Support Home > SDK Integration > SDK – KochavaTracker > Class – KochavaTracker > Instance Method – sendEventWithNameString:infoString:

Instance Method – sendEventWithNameString:infoString:

  • Instance Method

    sendEvent(withNameString:infoString:)

    Creates an instance of class KochavaEvent which has a nameString and an optional infoString, and then sends it to the Kochava Server. A convenience method.


    Declaration

    Parameters

    nameString A name string.

    Event names do not need to be pre-registered. They can be any alphanumeric string value which does not begin with an underscore.

    NOTE: Prepending an event name with an underscore is a convention reserved for Kochava system events. (i.e., _INSTALL)

    infoString A informational string.

    This can be any alphanumeric string value.
    This field has an entirely generic quality, in that it can contain whatever you consider to be fitting value.

    If the string passed is all numeric (and may include a decimal point), Kochava will automatically sum the amounts passed for the same nameString. For example, if you sent the purchase amount of in-app purchases in infoString and named nameString “IAP – Purchase Price”, Kochava would add up all the purchase amounts for you and present them as a total for “IAP – Purchase Price”.

    Regardless of what is passed in infoString, Kochava’s user dashboard will let you access all the data passed in infoString for any nameString, and present a count of all times an event was sent passing any given nameString.

    NOTE: If you pass a string of JSON represented data, only the root level (no nested chunks) is stored. Also, a limit of 75 characters is applied for a non-JSON-decodable string passed as an event infoString.

    Overview

    There are several different ways of creating and sending a KochavaEvent. Use this convenience method if the event name is a custom name and there are no additional fields of information you wish to send, or else the information you wish to send is limited to a single custom string.

     

     

    See Also

    Related Symbols class KochavaEvent

    The class KochavaEvent provides a means of defining the parameters for a post-install event, providing standardized types and key names.

    func send(KochavaEvent)

    Sends an instance of class KochavaEvent to the Kochava Server.

    func sendEvent(withNameString: String, infoDictionary: [AnyHashable: Any]?)

    Creates an instance of class KochavaEvent which has a nameString and an optional infoDictionary, and then sends it to the Kochava Server. A convenience method.

  • Instance Method

    sendEventWithNameString:
    infoString:

    Creates an instance of class KochavaEvent which has a nameString and an optional infoString, and then sends it to the Kochava Server. A convenience method.


    Declaration

    Parameters

    nameString A name string.

    Event names do not need to be pre-registered. They can be any alphanumeric string value which does not begin with an underscore.

    NOTE: Prepending an event name with an underscore is a convention reserved for Kochava system events. (i.e., _INSTALL)

    infoString A informational string.

    This can be any alphanumeric string value.
    This field has an entirely generic quality, in that it can contain whatever you consider to be fitting value.

    If the string passed is all numeric (and may include a decimal point), Kochava will automatically sum the amounts passed for the same nameString. For example, if you sent the purchase amount of in-app purchases in infoString and named nameString “IAP – Purchase Price”, Kochava would add up all the purchase amounts for you and present them as a total for “IAP – Purchase Price”.

    Regardless of what is passed in infoString, Kochava’s user dashboard will let you access all the data passed in infoString for any nameString, and present a count of all times an event was sent passing any given nameString.

    NOTE: If you pass a string of JSON represented data, only the root level (no nested chunks) is stored. Also, a limit of 75 characters is applied for a non-JSON-decodable string passed as an event infoString.

    Overview

    There are several different ways of creating and sending post-install events. Use this convenience method if the event name is a custom name and there are no additional fields of information you wish to send, or else the information you wish to send is limited to a single custom string.

     

     

    See Also

    Related Symbols class KochavaEvent

    The KochavaEvent class provides a means of defining the parameters for a post-install event, providing standardized types and key names.

    -sendEvent:

    Sends an instance of class KochavaEvent to the Kochava Server.

    -sendEventWithNameString:infoDictionary:

    Creates an instance of class KochavaEvent which has a nameString and an optional infoDictionary, and then sends it to the Kochava Server. A convenience method.

 
 

Last Modified: Jul 12, 2018 at 9:12 am