The main entry point for interacting with service-level (non-UI) functionality. Access the service methods using Vue3 injection with the key "Tiki"

Example

<script setup lang="ts">
const tiki: TikiService | undefined = inject("Tiki");
</script>

Constructors

Properties

_isInitialized: boolean = false
capture: Capture
config: Config
internalHandlers: InternalHandlers
publish: Publish
store: Store

Accessors

  • get isInitialized(): boolean
  • Get the initialization status of the service.

    Returns boolean

    true if the service is initialized, false otherwise.

Methods

  • Parameters

    • hasGmail: boolean
    • hasRetailer: boolean

    Returns Promise<void>

  • Initialize the service for a specified user.

    Parameters

    • id: string

      The user's unique identifier.

    Returns Promise<void>

    A Promise that resolves when the initialization is complete.

  • Log the user out of all linked accounts, remove all credentials, clear stored preferences, and in-memory service cache.

    Returns Promise<void>

    A Promise that resolves when the logout is complete.

Generated using TypeDoc