Launch a project on Button click

Prev Next

If you want to launch a project on the click of a button in your app, call embedProject with the Project ID when the button is clicked.

Android

Leap.embedProject("PROJECT_ID");     

iOS

Leap.shared.embedProject("<PROJECT_ID>")

React Native

LeapReactNative.embedProject("PROJECT_ID");

Cordova

cordova.plugins.LeapAndroid.embedProject("PROJECT_ID")

Ionic

await LeapPlugin.embedProject({ projectId: 'your-project-id' });

Xamarin

Leap.EmbedProject("<Project ID>");

MAUI (Android)

Leap.EmbedProject("<Project ID>");