IT. Expert System.

Android Reference



Class ClipboardManager

  • public class ClipboardManager
    extends ClipboardManager
    Interface to the clipboard service, for placing and retrieving text in the global clipboard.

    You do not instantiate this class directly; instead, retrieve it through Context.getSystemService(java.lang.String).

    The ClipboardManager API itself is very simple: it consists of methods to atomically get and set the current primary clipboard data. That data is expressed as a ClipData object, which defines the protocol for data exchange between applications.

    Developer Guides

    For more information about using the clipboard framework, read the Copy and Paste developer guide.

    See Also:
    • Constructor Detail

      • ClipboardManager

        public ClipboardManager(Context context,
                        Handler handler)
    • Method Detail

      • setPrimaryClip

        public void setPrimaryClip(ClipData clip)
        Sets the current primary clip on the clipboard. This is the clip that is involved in normal cut and paste operations.
        clip - The clipped data item to set.
      • getPrimaryClip

        public ClipData getPrimaryClip()
        Returns the current primary clip on the clipboard.
      • getPrimaryClipDescription

        public ClipDescription getPrimaryClipDescription()
        Returns a description of the current primary clip on the clipboard but not a copy of its data.
      • hasPrimaryClip

        public boolean hasPrimaryClip()
        Returns true if there is currently a primary clip on the clipboard.
      • getText

        public CharSequence getText()
        Deprecated. Use getPrimaryClip() instead. This retrieves the primary clip and tries to coerce it to a string.
        Description copied from class: ClipboardManager
        Returns the text on the clipboard. It will eventually be possible to store types other than text too, in which case this will return null if the type cannot be coerced to text.
        Specified by:
        getText in class ClipboardManager


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2664 / . Delta: 0.03684 с