public class

PreviewActivity

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

Class Overview

An Activity to preview the app with previewed container version.

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)

<activity android:name="com.google.android.gms.tagmanager.PreviewActivity"
                    android:label="@string/app_name">
        <intent-filter>
                <data android:scheme="tagmanager.c.<package_name>" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE"/>
        </intent-filter>
</activity>
 

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
PreviewActivity()
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.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.LayoutInflater.Factory2
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback

Public Constructors

public PreviewActivity ()

Public Methods

public void onCreate (Bundle savedInstanceState)

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