Classes

The following classes are available globally.

  • The internal client using for sending requests. Most of the exposed properties could be configured via the container TreasureData instance. You probably need this only to tuning the retry parameters.

    See more

    Declaration

    Objective-C

    @interface TDClient

    Swift

    class TDClient
  • The main interface for the SDK. All initialization and configuration (except retry parameters) could be done through here.

    Minimal example:

     [TreasureData initializeWithApiKey:@"<your_write_only_api_key>"];
    
     [[TreasureData sharedInstance] addEvent:@{@"welcome": @"Hello world"}
                                    database:@"my_db"
                                    table:@"my_ios_events"];
    
     [[TreasureData sharedInstance] uploadEvents];
    
    See more

    Declaration

    Objective-C

    @interface TreasureData : NSObject

    Swift

    class TreasureData : NSObject