View.ShadowBuilder object used to build a shadow, as in the native interface. View instance for the start of the drag and drop interaction. The payload will be encrypted by the BlackBerry Dynamics runtime, if the enterprise DLP settings require. Parameters clipDataĬlipData object containing the payload of the drag and drop operation, as in the native interface. The parameters have the same semantics as the parameters of the same names in the native View.startDragAndDrop interface, except as noted in the following. Call this method as part of a custom drag and drop interaction, for example, from within the startDragAndDrop method of a custom View. This method initialises a BlackBerry Dynamics drag and drop operation, in which the payload is protected in the same way as data on the clipboard is protected. Member Function Documentation ◆ getInstance() Get a reference to the Clipboard Manager object. Retrieve payload from a drag and drop interaction. Initialise drag and drop interaction with all parameters. StartDragAndDrop (ClipData clipData, View view, View.DragShadowBuilder shadowBuilder, Object myLocalState, int flags) Initialise drag and drop interaction with state. StartDragAndDrop (ClipData clipData, View view, View.DragShadowBuilder shadowBuilder, Object myLocalState) Initialise drag and drop interaction with defaults. StartDragAndDrop (ClipData clipData, View view) Replacement for writing to the clipboard. Replacement for checking whether the clipboard has data. Replacement for getting a description of what is on the clipboard. Replacement for reading from the clipboard. RemovePrimar圜lipChangedListener (圜lipChangedListener what) widget package reference for details of replacement classes for user interface elements.ĪddPrimar圜lipChangedListener (圜lipChangedListener what) Look for the startDra gAndDrop method documentation. View class reference on the site for background on supporting drag and drop operations. ClipboardManager class reference on the site. The code illustrates usage of this class. The source code of the SecureCopyPaste sample application that comes with the BlackBerry Dynamics Software Development Kit for Android. See also GDAndroid.getApplicationConfig for background on DLP policies. For example, startDragAndDrop() would be called from the custom startDragAndDrop implementation. The methods for drag and drop implementation in this class have the same names as similar native methods, or the same names as the interfaces from which they would be called. The runtime secures the payload data in a drag and drop interaction in the same way as clipboard data, see above.Ī custom View in an application that supports drag and drop operations can use the methods in this class in its implementation. The transfer of data by drag and drop may be secured or blocked by the BlackBerry Dynamics runtime. Drag and Drop ImplementationĪn end user can transfer data within a mobile application, and between mobile applications, by using drag and drop operations. For example, getPrimar圜lip() in this class reads data from the clipboard. Otherwise, the replacement methods have the same names and semantics as the native. Methods that are deprecated in the native programming interface aren't implemented:.Only pass in ClipData objects with textual Item contents, for example created with the ClipData.Item(CharSequence) constructor. Only text is supported, not other types of data.The following limitations apply to this class. The methods in this class will encrypt, decrypt, or block data as necessary, which the native methods do not. Use methods in this class for programmatic access to the clipboard, instead of methods in the native ClipboardMa nager class. The runtime secures text by encrypting it when it is cut or copied to the device clipboard, and then decrypting it when it is pasted from the clipboard. The BlackBerry Dynamics runtime may secure or block text in transit to or from the clipboard, depending on the policies for data leakage prevention (DLP) at the enterprise that the end user represents. There are also methods that can be used to implement drag and drop operations in a custom View class. There are BlackBerry Dynamics replacements for a number of methods in the native programming interface. Clipboard data is used in cut-copy-paste operations, and in drag and drop interactions. This class provides programmatic access to clipboard data, which may have been protected by BlackBerry Dynamics if required by enterprise policy.
0 Comments
Leave a Reply. |