Description
Use the appview
tag to embed other Chrome Apps within your Chrome App. (see Usage).
Permissions
appview
Availability
Types
EmbedRequest
Properties
- data
object
Optional developer specified data that the app to be embedded can use when making an embedding decision.
- embedderId
string
The ID of the app that sent the embedding request.
- allow
void
Allows the embedding request.
The
allow
function looks like:(url: string) => {...}
- url
string
Specifies the content to be embedded.
-
- deny
void
Prevents the embedding request.
The
deny
function looks like:() => {...}
Methods
connect()
chrome.appviewTag.connect(
app: string,
data?: any,
callback?: function,
): Promise<boolean>
Requests another app to be embedded.
Parameters
- app
string
The extension id of the app to be embedded.
- data
any optional
Optional developer specified data that the app to be embedded can use when making an embedding decision.
- callback
function optional
The
callback
parameter looks like:(success: boolean) => void
- success
boolean
True if the embedding request succeded.
-
Returns
-
Promise<boolean>
Chrome 132+Promises are only supported for Manifest V3 and later, other platforms need to use callbacks.