IT. Expert System.

Android Reference

ClipboardManager


android.content

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:
    Context.getSystemService(java.lang.String)
    • 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.
        Parameters:
        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


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

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

License.
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: 1158 / . Delta: 0.02311 с