npm i tronic-sdk @tronic-ext/ui-launcher
Setup UILauncherExtension with tronic-sdk
import { Tronic } from 'tronic-sdk';
import { UILauncherExtension } from '@tronic-ext/ui-launcher';
const tronic = new Tronic('YOUR_API_KEY', {
endpoint: 'https://your-endpoint.tronic.app',
extensions: [
new UILauncherExtension()
]
});
// or
const tronic = new Tronic('YOUR_API_KEY', {
endpoint: 'https://your-endpoint.tronic.app',
extensions: {
uiLauncher: new UILauncherExtension()
}
});
tronic.uiLauncher.mount()
tronic.uiLauncher.show()
tronic.uiLauncher.hide()