Welcome What's new in Chrome extensions Getting started API Reference Samples
Welcome What's new in Chrome extensions Getting started API Reference Samples

chrome.appviewTag

This API is part of the deprecated Chrome Apps platform. Learn more about migrating your app.
  • Description

    Use the appview tag to embed other Chrome Apps within your Chrome App. (see Usage).

  • Permissions
    appview
  • Availability
    Chrome 43+

Summary

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
    function

    Allows the embedding request.

    The allow function looks like: (url: string) => {...}

    • url
      string

      Specifies the content to be embedded.

  • deny
    function

    Prevents the embedding request.

    The deny function looks like: () => {...}

Methods

connect

chrome.appviewTag.connect(
  app: string,
  data?: any,
  callback?: function,
)

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.

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.