Screen API
Bambuser product: One-to-Many
/ One-to-One
An API to provide custom User Interface Screens from your app
Registration in App manifest
The app must registered each screen it would like to provide in App manifest using the {hostId}.screens
property, see User Interface Screens for the available slots a screen can be put into
Example screen registration in App manifest:
{
"permissions": [
"callsWidget:screen.write"
],
"url": {
"type": "module",
"src": "http://your-app-domain.com/main.js"
},
"callsWidget": {
"screens": [{
"id": "my-custom-screen",
"slot": "drop-in"
}]
}
}
Methods
createScreen()
Permission: callsWidget:screen.write
/ showsPlayer:screen.write
Context: Main app
Create a custom screen with the view provided by your app. This API should be used in conjunction with the provide-instance
event
Parameters
id
- String for the id associated with the screenviewUrl
- Url to the screens's view, must have the same origin as the URL to your app's main entrypoint