Skip to content

Commit

Permalink
NC-5747: Align method with web-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Oct 10, 2024
1 parent c6f7c6d commit f8f45ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ class NamiPaywallManagerBridgeModule(reactContext: ReactApplicationContext) :
fun removeListeners(count: Int?) {
}

@ReactMethod
fun removeAllListeners(eventName: String?) {
}

override fun onActivityResult(
activity: Activity?,
requestCode: Int,
Expand Down
2 changes: 1 addition & 1 deletion src/NamiEntitlementManager.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export declare enum NamiEntitlementManagerEvents {
export interface INamiEntitlementManager {
emitter: NativeEventEmitter;
active: () => Promise<Array<NamiEntitlement>>;
isEntitlementActive: (label?: string) => boolean;
isEntitlementActive: (label: string) => boolean;
refresh: (resultCallback?: (entitlements?: NamiEntitlement[]) => void) => void;
registerActiveEntitlementsHandler: (callback: (activeEntitlements: NamiEntitlement[]) => void) => EmitterSubscription['remove'];
clearProvisionalEntitlementGrants: () => void;
Expand Down
2 changes: 1 addition & 1 deletion src/NamiEntitlementManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export enum NamiEntitlementManagerEvents {
export interface INamiEntitlementManager {
emitter: NativeEventEmitter;
active: () => Promise<Array<NamiEntitlement>>;
isEntitlementActive: (label?: string) => boolean;
isEntitlementActive: (label: string) => boolean;
refresh: (
resultCallback?: (entitlements?: NamiEntitlement[]) => void,
) => void;
Expand Down

0 comments on commit f8f45ad

Please sign in to comment.