Firework SDK.

Hierarchy

  • FireworkSDK

Properties

onSDKInit?: SDKInitCallback

The callback of SDK initialization.

Accessors

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

  • 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 global share base URL of the video. The shareBaseURL in VideoPlayerConfiguration will override this.

    Returns undefined | string

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

    • value: undefined | string

    Returns void

Methods

  • Change App level language.

    Returns

    The result of changing app language.

    Parameters

    • Optional language: null | string

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

    Returns Promise<boolean>

  • Get the component type based on feedId.

    Returns

    The component type based on feedId.

    Parameters

    • feedId: string

    Returns undefined | FWComponentType

  • You need to call this method when you call init method in native side.

    Parameters

    • nativeLazyInit: boolean = false

      Genenally, you should call naitve init in application(:, didFinishLaunchingWithOptions:) -> Bool on iOS and MainApplication.onCreate on Android. If not, you should pass nativeLazyInit as true.

    Returns Promise<void>

  • Get global single instance of FireworkSDK class.

    Returns

    FireworkSDK

    Returns FireworkSDK

Generated using TypeDoc