For the complete documentation index, see llms.txt. This page is also available as Markdown.

registerSignInHandler

Register a sign-in provider to handle your own sign-in logic

NamiPaywallManager.registerSignInHandler { fromPaywallVC in
  // Add code to handle sign-in logic
}
NamiPaywallManager.registerSignInHandler { context ->
  // Add code to handle sign-in logic
}
// coming soon
useEffect(() => {
  const subscriptionSignInRemover =
  NamiPaywallManager.registerSignInHandler(() => {
    console.log('sign in');
  });
  return () => {
    subscriptionSignInRemover();
  };
NamiPaywallManager.RegisterSignInHandler(signInCallback);

Callback

  • (Apple-native only) fromPaywallVC : The paywall view controller from which the sign-in control was tapped by the user

  • (Android-native only) context : The paywall context from which the sign-in control was tapped by the user

Last updated