TagManagerPreviewActivity

  • TagManagerPreviewActivity is an Android Activity used for previewing or stopping the preview of a Google Tag Manager container.

  • Preview functionality requires adding a specific snippet to the build.gradle file.

  • The class inherits extensively from android.app.Activity, android.content.Context, and android.content.ComponentCallbacks2 for lifecycle management, system services, and memory handling.

  • The primary method is onCreate, which sets up the preview and launches the main application activity.

  • It includes a vast array of inherited public methods for managing views, lifecycle, intents, menus, fragments, and system service access.

public class TagManagerPreviewActivity extends Activity

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 build.gradle (where <application_id> needs to be replaced by your application id):

android {
 defaultConfig {
 applicationId "<application_id>"
 }
 }
 

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

Public Method Summary

void
onCreate(Bundle savedInstanceState)

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

Inherited Method Summary

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.