public final class

MAMClipboard

extends Object
java.lang.Object
   ↳ com.microsoft.intune.mam.client.content.MAMClipboard

Class Overview

MAM wrapper around ClipboardManager. This must be used in place of direct calls into ClipboardManager. It is recommended to call into ClipboardManager as normal and allow the Build Plugin to apply this wrapper.

Summary

Public Methods
static ClipData getPrimaryClip(ClipboardManager original)
static ClipDescription getPrimaryClipDescription(ClipboardManager original)
static CharSequence getText(ClipboardManager original)
static boolean hasPrimaryClip(ClipboardManager original)
static boolean hasText(ClipboardManager original)
static void setPrimaryClip(ClipboardManager original, ClipData clip)
static void setText(ClipboardManager original, CharSequence text)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static ClipData getPrimaryClip (ClipboardManager original)

Parameters
original system clipboard manager
Returns
  • clip

public static ClipDescription getPrimaryClipDescription (ClipboardManager original)

Parameters
original system clipboard manager
Returns
  • clip description

public static CharSequence getText (ClipboardManager original)

Parameters
original system clipboard manager
Returns
  • clip

public static boolean hasPrimaryClip (ClipboardManager original)

Parameters
original system clipboard manager
Returns
  • if there is a primary clip

public static boolean hasText (ClipboardManager original)

Parameters
original system clipboard manager
Returns
  • if text is on the clipboard

public static void setPrimaryClip (ClipboardManager original, ClipData clip)

Parameters
original system clipboard manager
clip clip

public static void setText (ClipboardManager original, CharSequence text)

Parameters
original system clipboard manager
text clip