Wishi partner widget/SDK documentation
  • The Formal Stuff
    • Introduction
    • iOS SDK
      • Setup
        • View controller setup example
      • Public protocols
      • Public API's
      • Data structures/types
    • Web SDK
      • Setup
      • Initialization
      • Data structures
      • Public API's/interfaces
      • Events subscription
      • Telemetry
    • Pixel
      • Set up the base code
      • Set up events
      • Tracking parameters
    • Client-side authentication
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. The Formal Stuff
  2. iOS SDK

Public API's

PreviousPublic protocolsNextData structures/types

Last updated 2 years ago

Was this helpful?

Launch SDK

Wishi.shared.launch(from: navigation)

Logout

 public func logout() {} // will clean up tokens from device

Get

Wishi.shared.getUserStatus { responseObject in
    if let userStatus = responseObject as? UserStatus {
        // Do here anything
    }
} failure: { error, operation in
    // TODO: Some should be shown to user
}

Get SDK version

Wishi.shared.wishiSDKVersion() -> String
user status