Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Espinola committed Jun 14, 2024
1 parent 35f5da1 commit 02e8164
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ file after installing the SDK:
#### Swift

```swift
import attentive_ios_sdk
import ATTNSDKFramework
```

```swift
Expand All @@ -89,7 +89,8 @@ ATTNEventTracker.setup(with: sdk)
#### Objective-C

```objectiveC
#import "attentive_ios_sdk/attentive-ios-sdk-umbrella.h"
#import "ATTNSDKFramework-Swift.h"
#import "ATTNSDKFramework-umbrella.h"
```

```objectiveC
Expand Down Expand Up @@ -223,6 +224,24 @@ ATTNPurchaseEvent* purchase = [[ATTNPurchaseEvent alloc] initWithItems:@[item] o
[[ATTNEventTracker sharedInstance] recordEvent:purchase];
```
### Switch to another domain
Reinitialize the SDK with a different domain.
#### Swift
```swift
let sdk = ATTNSDK(domain: "domain")
sdk.update(domain: "differentDomain")
```

#### Objective-C

```objectivec
ATTNSDK *sdk = [[ATTNSDK alloc] initWithDomain:@"domain"];
[sdk updateDomain: @"differentDomain"];
```
### Clear the current user
If the user logs out then the current user identifiers should be deleted:
Expand Down

0 comments on commit 02e8164

Please sign in to comment.