Class DragAndDrop
Definition
- Assembly:
- Tizen.NUI.dll
DragAndDrop controls the drag object and data.
C#Copypublic class DragAndDrop : BaseHandle, INotifyPropertyChanged, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Properties
Declaration
C#Copypublic static DragAndDrop Instance { get; }
Property Value
| Type | Description |
|---|---|
| DragAndDrop |
Methods
Declaration
C#Copypublic void AddListener(View targetView, DragAndDrop.DragAndDropEventHandler callback)
Parameters
| Type | Name | Description |
|---|---|---|
| View | targetView | The target view |
| DragAndDrop.DragAndDropEventHandler | callback | The callback function to get drag event when the drag source enters, moves, leaves and drops on the drop target |
Declaration
C#Copypublic void RemoveListener(View targetView, DragAndDrop.DragAndDropEventHandler callback)
Parameters
| Type | Name | Description |
|---|---|---|
| View | targetView | The target view |
| DragAndDrop.DragAndDropEventHandler | callback | The callback function to remove |
Declaration
C#Copypublic void StartDragAndDrop(View sourceView, View shadowView, DragData dragData, DragAndDrop.SourceEventHandler callback)
Parameters
| Type | Name | Description |
|---|---|---|
| View | sourceView | The soruce view |
| View | shadowView | The shadow view for drag object |
| DragData | dragData | The data to send |
| DragAndDrop.SourceEventHandler | callback | The source event callback |
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable