react-native-firework-sdk 2.4.1-beta.1 → 2.4.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/FireworkVideoUI +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Info.plist +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/FireworkVideoUI +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Info.plist +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/_CodeSignature/CodeResources +1 -1
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWStoryBlockManager.kt +4 -1
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/models/FWNavigatorInterface.kt +2 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FWNavigatorModule.kt +41 -13
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FWVideoShoppingModule.kt +1 -1
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/pages/FWContainerActivity.kt +67 -0
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWConfigUtil.kt +1 -0
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWGlobalDataUtil.kt +0 -2
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWStoryBlockUtil.kt +30 -0
- package/android/src/main/res/layout/fw_bridge_fragment_container.xml +8 -0
- package/ios/FireworkSdk.xcodeproj/project.pbxproj +12 -0
- package/ios/Models/RNToNative/RCTConvert+FWNavigatorModule.swift +21 -0
- package/ios/Models/RNToNative/RCTConvert+FireworkSDKModule.swift +3 -30
- package/ios/Models/RNToNative/RCTConvert+StoryBlock.swift +2 -2
- package/ios/Models/RNToNative/RCTConvert+VideoFeed.swift +5 -5
- package/ios/Modules/FWNavigatorModule/FWNavigatorModule.m +2 -2
- package/ios/Modules/FWNavigatorModule/FWNavigatorModule.swift +59 -4
- package/ios/Modules/FWNavigatorModule/FWRNContainerViewController.swift +33 -0
- package/ios/Modules/FWNavigatorModule/PushRNContainerParams.swift +14 -0
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule.m +1 -1
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule.swift +36 -17
- package/lib/commonjs/FWNavigator.js +21 -0
- package/lib/commonjs/FWNavigator.js.map +1 -1
- package/lib/commonjs/FireworkSDK.js +10 -4
- package/lib/commonjs/FireworkSDK.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/PushRNContainerParams.js +2 -0
- package/lib/commonjs/models/PushRNContainerParams.js.map +1 -0
- package/lib/commonjs/modules/FWNavigatorModule.js.map +1 -1
- package/lib/commonjs/modules/FireworkSDKModule.js.map +1 -1
- package/lib/module/FWNavigator.js +21 -0
- package/lib/module/FWNavigator.js.map +1 -1
- package/lib/module/FireworkSDK.js +10 -4
- package/lib/module/FireworkSDK.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/PushRNContainerParams.js +2 -0
- package/lib/module/models/PushRNContainerParams.js.map +1 -0
- package/lib/module/modules/FWNavigatorModule.js +1 -2
- package/lib/module/modules/FWNavigatorModule.js.map +1 -1
- package/lib/module/modules/FireworkSDKModule.js.map +1 -1
- package/lib/typescript/FWNavigator.d.ts +14 -0
- package/lib/typescript/FireworkSDK.d.ts +3 -3
- package/lib/typescript/index.d.ts +3 -1
- package/lib/typescript/models/PushRNContainerParams.d.ts +8 -0
- package/lib/typescript/modules/FWNavigatorModule.d.ts +3 -0
- package/lib/typescript/modules/FireworkSDKModule.d.ts +1 -1
- package/package.json +1 -1
- package/src/FWNavigator.ts +20 -0
- package/src/FireworkSDK.ts +15 -4
- package/src/index.ts +4 -0
- package/src/models/PushRNContainerParams.ts +9 -0
- package/src/modules/FWNavigatorModule.ts +5 -2
- package/src/modules/FireworkSDKModule.ts +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["FireworkSDKModule.ts"],"names":["NativeEventEmitter","NativeModules","LINKING_ERROR","FireworkSDKModule","FireworkSDK","Proxy","get","Error","FireworkSDKModuleEventEmitter"],"mappings":"AAAA,SAASA,kBAAT,EAA2CC,aAA3C,QAAgE,cAAhE;AAEA,SAASC,aAAT,QAA8B,6BAA9B;AAMA,MAAMC,iBAAiB,GAAGF,aAAa,CAACG,WAAd,GACtBH,aAAa,CAACG,WADQ,GAEtB,IAAIC,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUL,aAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;
|
|
1
|
+
{"version":3,"sources":["FireworkSDKModule.ts"],"names":["NativeEventEmitter","NativeModules","LINKING_ERROR","FireworkSDKModule","FireworkSDK","Proxy","get","Error","FireworkSDKModuleEventEmitter"],"mappings":"AAAA,SAASA,kBAAT,EAA2CC,aAA3C,QAAgE,cAAhE;AAEA,SAASC,aAAT,QAA8B,6BAA9B;AAMA,MAAMC,iBAAiB,GAAGF,aAAa,CAACG,WAAd,GACtBH,aAAa,CAACG,WADQ,GAEtB,IAAIC,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUL,aAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;AA0BA,MAAMM,6BAA6B,GAAG,IAAIR,kBAAJ,CAAuBG,iBAAvB,CAAtC;AACA,SAASK,6BAAT;AACA,eAAeL,iBAAf","sourcesContent":["import { NativeEventEmitter, NativeModule, NativeModules } from 'react-native';\n\nimport { LINKING_ERROR } from '../constants/FWErrorMessage';\nimport type AdBadgeConfiguration from '../models/AdBadgeConfiguration';\nimport type SDKInitOptions from '../models/SDKInitOptions';\nimport type TrackPurchaseParameters from '../models/TrackPurchaseParameters';\nimport type VideoPlayerNativeConfiguration from '../models/VideoPlayerNativeConfiguration';\n\nconst FireworkSDKModule = NativeModules.FireworkSDK\n ? NativeModules.FireworkSDK\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\ninterface IFireworkSDKModule extends NativeModule {\n init(options?: SDKInitOptions): Promise<any>;\n openVideoPlayer(url: string, config?: VideoPlayerNativeConfiguration): void;\n setVideoFeedClickCallbackEnabled(enabled: boolean): void; // Only supported on iOS\n setCustomCTAClickEnabled(enabled: boolean): void;\n setShareBaseURL(url?: string): Promise<any>;\n setVideoPlaybackEventEnabled(enabled: boolean): void;\n setAdBadgeConfiguration(config?: AdBadgeConfiguration): Promise<any>;\n trackPurchase(parameters: TrackPurchaseParameters): void;\n changeAppLanguage(\n language?: string | null,\n enableAutoHorizontalFlip?: boolean\n ): Promise<boolean>;\n}\n\nconst FireworkSDKModuleEventEmitter = new NativeEventEmitter(FireworkSDKModule);\nexport { FireworkSDKModuleEventEmitter };\nexport default FireworkSDKModule as IFireworkSDKModule;\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type PushRNContainerParams from './models/PushRNContainerParams';
|
|
1
2
|
/**
|
|
2
3
|
* You can use this class for pushing RN page from the native page.
|
|
3
4
|
*/
|
|
@@ -5,6 +6,19 @@ declare class FWNavigator {
|
|
|
5
6
|
private static _instance?;
|
|
6
7
|
static getInstance(): FWNavigator;
|
|
7
8
|
private constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Push a new RN container.
|
|
11
|
+
* You could use this method to make a RN page on top of
|
|
12
|
+
* SDK full-screen player.
|
|
13
|
+
* @param params {PushRNContainerParams}
|
|
14
|
+
* @returns {Promise<boolean>} The result of pushing a new Container.
|
|
15
|
+
*/
|
|
16
|
+
pushRNContainer(params: PushRNContainerParams): Promise<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Pop the RN container you pushed before.
|
|
19
|
+
* @returns {Promise<boolean>} The result of popping a new Container.
|
|
20
|
+
*/
|
|
21
|
+
popRNContainer(): Promise<boolean>;
|
|
8
22
|
/**
|
|
9
23
|
* Pop the native container. You could use the method to close the fullscreen player.
|
|
10
24
|
* But if the enablePictureInPicture of the associated video feed is true,
|
|
@@ -108,11 +108,11 @@ declare class FireworkSDK {
|
|
|
108
108
|
trackPurchase(parameters: TrackPurchaseParameters): Promise<void>;
|
|
109
109
|
/**
|
|
110
110
|
* Change App level language.
|
|
111
|
-
* @param {string | undefined | null} language Such as en, ar and en-US
|
|
112
|
-
*
|
|
111
|
+
* @param {string | undefined | null} language Such as en, ar and en-US. If language is undefined or null or empty string, SDK will use system language.
|
|
112
|
+
* @param {boolean | undefined} enableAutoHorizontalFlip Specifies if auto horizontal flip is enabled based on app and system language. Defaults to true.
|
|
113
113
|
* @returns {Promise<boolean>} The result of changing app language.
|
|
114
114
|
*/
|
|
115
|
-
changeAppLanguage(language?: string | null): Promise<boolean>;
|
|
115
|
+
changeAppLanguage(language?: string | null, enableAutoHorizontalFlip?: boolean): Promise<boolean>;
|
|
116
116
|
private updateInternalAppLanguage;
|
|
117
117
|
private updateInternalShareBaseURL;
|
|
118
118
|
}
|
|
@@ -29,6 +29,8 @@ import type ProductInfoViewConfiguration from './models/ProductInfoViewConfigura
|
|
|
29
29
|
import type { LinkButtonConfiguration, ShoppingCTAButtonConfiguration, ShoppingCTAButtonText } from './models/ProductInfoViewConfiguration';
|
|
30
30
|
import type ProductUnit from './models/ProductUnit';
|
|
31
31
|
import type { ProductPrice, ProductUnitOption } from './models/ProductUnit';
|
|
32
|
+
import type PushRNContainerParams from './models/PushRNContainerParams';
|
|
33
|
+
import type { RNAppProps } from './models/PushRNContainerParams';
|
|
32
34
|
import type SDKInitOptions from './models/SDKInitOptions';
|
|
33
35
|
import type { VideoLaunchBehavior } from './models/SDKInitOptions';
|
|
34
36
|
import type ShoppingCTAResult from './models/ShoppingCTAResult';
|
|
@@ -50,4 +52,4 @@ import type { VideoPlayerStyle } from './models/VideoPlayerStyle';
|
|
|
50
52
|
import type { CustomClickCartIconCallback, CustomClickLinkButtonCallback, ShoppingCTACallback, UpdateProductDetailsCallback } from './VideoShopping';
|
|
51
53
|
import VideoShopping from './VideoShopping';
|
|
52
54
|
export default FireworkSDK;
|
|
53
|
-
export { AdBadgeConfiguration, AdBadgeTextType, AdConfiguration, AndroidFontInfo, CustomClickCartIconCallback, CustomClickLinkButtonCallback, CustomClickLinkButtonEvent, CustomCTAClickCallback, CustomCTAClickEvent, FeedItemDetails, FireworkSDK, FWError, FWNavigator, GradientDrawable, GradientDrawableOrientation, IOSFontInfo, IOSSystemFontStyle, IOSSystemFontWeight, IStoryBlockMethods, IStoryBlockProps, IVideoFeedProps, LinkButtonConfiguration, LiveStream, LiveStreamChatEvent, LiveStreamChatEventName, LiveStreamEvent, LiveStreamEventDetails, LiveStreamEventName, LiveStreamMessageDetails, onLiveStreamChatEventCallback, onLiveStreamEventCallback, OpenVideoPlayerConfiguration, Product, ProductInfoViewConfiguration, ProductPrice, ProductUnit, ProductUnitOption, SDKInitCallback, SDKInitEvent, SDKInitOptions, ShoppingCTAButtonConfiguration, ShoppingCTAButtonText, ShoppingCTACallback, ShoppingCTAEvent, ShoppingCTAResult, StoryBlock, StoryBlockConfiguration, StoryBlockSource, TrackPurchaseParameters, UpdateProductDetailsCallback, UpdateProductDetailsEvent, VastAttribute, VideoFeed, VideoFeedClickCallback, VideoFeedClickEvent, VideoFeedConfiguration, VideoFeedMode, VideoFeedPadding, VideoFeedPlayIconConfiguration, VideoFeedSource, VideoFeedTitleConfiguration, VideoFeedTitlePosition, VideoLaunchBehavior, VideoPlaybackCallback, VideoPlaybackDetails, VideoPlaybackEvent, VideoPlaybackEventName, VideoPlayerCompleteAction, VideoPlayerConfiguration, VideoPlayerCTADelay, VideoPlayerCTADelayType, VideoPlayerCTAStyle, VideoPlayerCTAWidth, VideoPlayerSize, VideoPlayerStyle, VideoShopping, };
|
|
55
|
+
export { AdBadgeConfiguration, AdBadgeTextType, AdConfiguration, AndroidFontInfo, CustomClickCartIconCallback, CustomClickLinkButtonCallback, CustomClickLinkButtonEvent, CustomCTAClickCallback, CustomCTAClickEvent, FeedItemDetails, FireworkSDK, FWError, FWNavigator, GradientDrawable, GradientDrawableOrientation, IOSFontInfo, IOSSystemFontStyle, IOSSystemFontWeight, IStoryBlockMethods, IStoryBlockProps, IVideoFeedProps, LinkButtonConfiguration, LiveStream, LiveStreamChatEvent, LiveStreamChatEventName, LiveStreamEvent, LiveStreamEventDetails, LiveStreamEventName, LiveStreamMessageDetails, onLiveStreamChatEventCallback, onLiveStreamEventCallback, OpenVideoPlayerConfiguration, Product, ProductInfoViewConfiguration, ProductPrice, ProductUnit, ProductUnitOption, PushRNContainerParams, RNAppProps, SDKInitCallback, SDKInitEvent, SDKInitOptions, ShoppingCTAButtonConfiguration, ShoppingCTAButtonText, ShoppingCTACallback, ShoppingCTAEvent, ShoppingCTAResult, StoryBlock, StoryBlockConfiguration, StoryBlockSource, TrackPurchaseParameters, UpdateProductDetailsCallback, UpdateProductDetailsEvent, VastAttribute, VideoFeed, VideoFeedClickCallback, VideoFeedClickEvent, VideoFeedConfiguration, VideoFeedMode, VideoFeedPadding, VideoFeedPlayIconConfiguration, VideoFeedSource, VideoFeedTitleConfiguration, VideoFeedTitlePosition, VideoLaunchBehavior, VideoPlaybackCallback, VideoPlaybackDetails, VideoPlaybackEvent, VideoPlaybackEventName, VideoPlayerCompleteAction, VideoPlayerConfiguration, VideoPlayerCTADelay, VideoPlayerCTADelayType, VideoPlayerCTAStyle, VideoPlayerCTAWidth, VideoPlayerSize, VideoPlayerStyle, VideoShopping, };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { NativeEventEmitter, NativeModule } from 'react-native';
|
|
2
|
+
import type PushRNContainerParams from '../models/PushRNContainerParams';
|
|
2
3
|
interface IFWNavigatorModule extends NativeModule {
|
|
4
|
+
pushRNContainer(params: PushRNContainerParams): Promise<boolean>;
|
|
5
|
+
popRNContainer(): Promise<boolean>;
|
|
3
6
|
popNativeContainer(): Promise<boolean>;
|
|
4
7
|
canPopNativeContainer(): Promise<boolean>;
|
|
5
8
|
startFloatingPlayer(): Promise<boolean>;
|
|
@@ -12,7 +12,7 @@ interface IFireworkSDKModule extends NativeModule {
|
|
|
12
12
|
setVideoPlaybackEventEnabled(enabled: boolean): void;
|
|
13
13
|
setAdBadgeConfiguration(config?: AdBadgeConfiguration): Promise<any>;
|
|
14
14
|
trackPurchase(parameters: TrackPurchaseParameters): void;
|
|
15
|
-
changeAppLanguage(language?: string | null): Promise<boolean>;
|
|
15
|
+
changeAppLanguage(language?: string | null, enableAutoHorizontalFlip?: boolean): Promise<boolean>;
|
|
16
16
|
}
|
|
17
17
|
declare const FireworkSDKModuleEventEmitter: NativeEventEmitter;
|
|
18
18
|
export { FireworkSDKModuleEventEmitter };
|
package/package.json
CHANGED
package/src/FWNavigator.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FWEventName } from './models/FWEventName';
|
|
2
|
+
import type PushRNContainerParams from './models/PushRNContainerParams';
|
|
2
3
|
import FWNavigatorModule, {
|
|
3
4
|
FWNavigatorModuleEventEmitter,
|
|
4
5
|
} from './modules/FWNavigatorModule';
|
|
@@ -22,6 +23,25 @@ class FWNavigator {
|
|
|
22
23
|
FWNavigatorModuleEventEmitter.addListener(FWEventName.LogMessage, () => {});
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Push a new RN container.
|
|
28
|
+
* You could use this method to make a RN page on top of
|
|
29
|
+
* SDK full-screen player.
|
|
30
|
+
* @param params {PushRNContainerParams}
|
|
31
|
+
* @returns {Promise<boolean>} The result of pushing a new Container.
|
|
32
|
+
*/
|
|
33
|
+
public pushRNContainer(params: PushRNContainerParams): Promise<boolean> {
|
|
34
|
+
return FWNavigatorModule.pushRNContainer(params);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Pop the RN container you pushed before.
|
|
39
|
+
* @returns {Promise<boolean>} The result of popping a new Container.
|
|
40
|
+
*/
|
|
41
|
+
public popRNContainer(): Promise<boolean> {
|
|
42
|
+
return FWNavigatorModule.popRNContainer();
|
|
43
|
+
}
|
|
44
|
+
|
|
25
45
|
/**
|
|
26
46
|
* Pop the native container. You could use the method to close the fullscreen player.
|
|
27
47
|
* But if the enablePictureInPicture of the associated video feed is true,
|
package/src/FireworkSDK.ts
CHANGED
|
@@ -297,15 +297,26 @@ class FireworkSDK {
|
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
299
|
* Change App level language.
|
|
300
|
-
* @param {string | undefined | null} language Such as en, ar and en-US
|
|
301
|
-
*
|
|
300
|
+
* @param {string | undefined | null} language Such as en, ar and en-US. If language is undefined or null or empty string, SDK will use system language.
|
|
301
|
+
* @param {boolean | undefined} enableAutoHorizontalFlip Specifies if auto horizontal flip is enabled based on app and system language. Defaults to true.
|
|
302
302
|
* @returns {Promise<boolean>} The result of changing app language.
|
|
303
303
|
*/
|
|
304
|
-
public async changeAppLanguage(
|
|
304
|
+
public async changeAppLanguage(
|
|
305
|
+
language?: string | null,
|
|
306
|
+
enableAutoHorizontalFlip?: boolean
|
|
307
|
+
): Promise<boolean> {
|
|
305
308
|
if (!FWGlobalState.getInstance().sdkInitCalled) {
|
|
306
309
|
await FWGlobalState.getInstance().sdkInitCalledPromise;
|
|
307
310
|
}
|
|
308
|
-
|
|
311
|
+
let result = false;
|
|
312
|
+
if (Platform.OS === 'ios') {
|
|
313
|
+
result = await FireworkSDKModule.changeAppLanguage(
|
|
314
|
+
language,
|
|
315
|
+
enableAutoHorizontalFlip ?? true
|
|
316
|
+
);
|
|
317
|
+
} else {
|
|
318
|
+
result = await FireworkSDKModule.changeAppLanguage(language);
|
|
319
|
+
}
|
|
309
320
|
if (result) {
|
|
310
321
|
const languageChanged = this._appLanguage !== language;
|
|
311
322
|
if (Platform.OS === 'ios' && languageChanged) {
|
package/src/index.ts
CHANGED
|
@@ -57,6 +57,8 @@ import type {
|
|
|
57
57
|
} from './models/ProductInfoViewConfiguration';
|
|
58
58
|
import type ProductUnit from './models/ProductUnit';
|
|
59
59
|
import type { ProductPrice, ProductUnitOption } from './models/ProductUnit';
|
|
60
|
+
import type PushRNContainerParams from './models/PushRNContainerParams';
|
|
61
|
+
import type { RNAppProps } from './models/PushRNContainerParams';
|
|
60
62
|
import type SDKInitOptions from './models/SDKInitOptions';
|
|
61
63
|
import type { VideoLaunchBehavior } from './models/SDKInitOptions';
|
|
62
64
|
import type ShoppingCTAResult from './models/ShoppingCTAResult';
|
|
@@ -131,6 +133,8 @@ export {
|
|
|
131
133
|
ProductPrice,
|
|
132
134
|
ProductUnit,
|
|
133
135
|
ProductUnitOption,
|
|
136
|
+
PushRNContainerParams,
|
|
137
|
+
RNAppProps,
|
|
134
138
|
SDKInitCallback,
|
|
135
139
|
SDKInitEvent,
|
|
136
140
|
SDKInitOptions,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { NativeEventEmitter, NativeModule } from 'react-native';
|
|
2
|
-
|
|
1
|
+
import { NativeEventEmitter, NativeModule, NativeModules } from 'react-native';
|
|
2
|
+
|
|
3
3
|
import { LINKING_ERROR } from '../constants/FWErrorMessage';
|
|
4
|
+
import type PushRNContainerParams from '../models/PushRNContainerParams';
|
|
4
5
|
|
|
5
6
|
const FWNavigatorModule = NativeModules.FWNavigatorModule
|
|
6
7
|
? NativeModules.FWNavigatorModule
|
|
@@ -13,6 +14,8 @@ const FWNavigatorModule = NativeModules.FWNavigatorModule
|
|
|
13
14
|
}
|
|
14
15
|
);
|
|
15
16
|
interface IFWNavigatorModule extends NativeModule {
|
|
17
|
+
pushRNContainer(params: PushRNContainerParams): Promise<boolean>;
|
|
18
|
+
popRNContainer(): Promise<boolean>;
|
|
16
19
|
popNativeContainer(): Promise<boolean>;
|
|
17
20
|
canPopNativeContainer(): Promise<boolean>;
|
|
18
21
|
startFloatingPlayer(): Promise<boolean>;
|
|
@@ -26,7 +26,10 @@ interface IFireworkSDKModule extends NativeModule {
|
|
|
26
26
|
setVideoPlaybackEventEnabled(enabled: boolean): void;
|
|
27
27
|
setAdBadgeConfiguration(config?: AdBadgeConfiguration): Promise<any>;
|
|
28
28
|
trackPurchase(parameters: TrackPurchaseParameters): void;
|
|
29
|
-
changeAppLanguage(
|
|
29
|
+
changeAppLanguage(
|
|
30
|
+
language?: string | null,
|
|
31
|
+
enableAutoHorizontalFlip?: boolean
|
|
32
|
+
): Promise<boolean>;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
const FireworkSDKModuleEventEmitter = new NativeEventEmitter(FireworkSDKModule);
|