public class

TagManagerPreviewActivity

extends Activity
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ com.google.android.gms.tagmanager.TagManagerPreviewActivity

Class Overview

An Activity to preview or stop previewing a Google Tag Manager container.

To use the preview function, the app should add the following snippet into its AndroidManifest.xml: (where <package_name> needs to be replaced by your package name)

&lt;activity android:name="com.google.android.gms.tagmanager.TagManagerPreviewActivity"
                    android:label="@string/app_name"&gt;
        &lt;intent-filter&gt;
                &lt;data android:scheme="tagmanager.c.&lt;package_name&gt;" /&gt;
                &lt;action android:name="android.intent.action.VIEW" /&gt;
                &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                &lt;category android:name="android.intent.category.BROWSABLE"/&gt;
        &lt;/intent-filter&gt;
&lt;/activity&gt;
 

Summary

[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
TagManagerPreviewActivity()
Public Methods
void onCreate(Bundle savedInstanceState)
Prepares for previewing a non-published container and then launches the launch activity for this package.
[Expand]
Inherited Methods
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.view.LayoutInflater.Factory2
From interface android.view.Window.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.View.OnCreateContextMenuListener
From interface android.content.ComponentCallbacks2
From interface android.view.LayoutInflater.Factory
From interface android.content.ComponentCallbacks

Public Constructors

public TagManagerPreviewActivity ()

Public Methods

public void onCreate (Bundle savedInstanceState)

Prepares for previewing a non-published container and then launches the launch activity for this package.