FireworkSDK class Null safety
The entry class of Firework Flutter SDK, which supports the sdk initialization, global configuration, etc.
Constructors
- FireworkSDK.getInstance()
-
Get global single instance of FireworkSDK class.
factory
Properties
- adBadgeConfiguration ↔ AdBadgeConfiguration?
-
The configuration for ad badges.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- liveStream → LiveStream
-
LiveStream instance.
read-only
-
FWNavigator instance.
read-only
- onCustomCTAClick ↔ CustomCTAClickCallback?
-
The callback of clicking custom CTA.
read / write
- onSDKInit ↔ SDKInitCallback?
-
The callback of SDK initialization.
read / write
- onVideoFeedClick ↔ VideoFeedClickCallback?
-
The callback of clicking video feed.
read / write
- onVideoPlayback ↔ VideoPlaybackCallback?
-
The callback of video playback.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
-
The share base URL of videos.
read / write
- shopping → VideoShopping
-
VideoShopping instance.
read-only
Methods
-
init(
{String? userId}) → void - Initializes Firework SDK. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
openVideoPlayer(
{required String url, VideoPlayerConfiguration? config}) → void -
Opens video
url
with theconfig
. -
toString(
) → String -
A string representation of this object. [...]
inherited
-
trackPurchase(
TrackPurchaseParameters parameters) → void - Records the user purchase.
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited