Entry class of Firework SDK, which supports the sdk initialization and global configuration.

Hierarchy

  • FireworkSDK

Properties

onSDKInit?: SDKInitCallback

The callback of SDK initialization.

onVideoFeedClick?: VideoFeedClickCallback

the callback of clicking Video Feed.

Accessors

  • get appComponentName(): undefined | string
  • The app component name.

    Deprecated

    The get accessor will be deprecated since RN SDK V2.0.

    Returns undefined | string

  • set appComponentName(value: undefined | string): void
  • Deprecated

    The set accessor will be deprecated since RN SDK V2.0.

    Parameters

    • value: undefined | string

    Returns void

  • get appLanguage(): undefined | null | string
  • Returns undefined | null | string

  • get customCTALinkContentPageRouteName(): undefined | string
  • The custom CTA link content page route name.

    Deprecated

    The get accessor will be deprecated since RN SDK V2.0.

    Returns undefined | string

  • set customCTALinkContentPageRouteName(value: undefined | string): void
  • Deprecated

    The set accessor will be deprecated since RN SDK V2.0.

    Parameters

    • value: undefined | string

    Returns void

  • get debugLogsEnabled(): boolean
  • Defaults to false. You can enable debug logs by setting this property to true.

    Returns boolean

  • set debugLogsEnabled(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

  • get shareBaseURL(): undefined | string
  • The share base URL of videos. The set accessor is async.

    Returns undefined | string

  • set shareBaseURL(value: undefined | string): void
  • Parameters

    • value: undefined | string

    Returns void

Methods

  • Change App level language.

    Returns

    Parameters

    • Optional language: null | string

      Such as en, ar and en-US If language is null or undefined or empty string, we will use system language.

    Returns Promise<boolean>

  • Initializes Firework SDK.

    Parameters

    • Optional userId: string

      An id to uniquely identify device or user.

    Returns void

  • Get global single instance of FireworkSDK class.

    Returns

    FireworkSDK

    Returns FireworkSDK

Generated using TypeDoc