class TextDragOptions
source · line 12public
public class TextDragOptions public constructor(
public val enabled: Boolean = true,
public val threshold: Double = 4.0,
public val effects: DragEffects = DragEffects(true, true, false),
public val copyPolicy: TextCopyPolicy = TextCopyPolicy.Default,
/** Uses the platform default when the callback returns None; absent draws the visible selection. */
public val preview: ((DragSourceStart, String) -> DragPreview?)? = None,
public val onCompleted: (TextDragResult) -> Unit = {}
)
Selection export is independent of paste and drop acceptance.
Extensions
property preview
source · line 18public
public val preview: ((DragSourceStart, String) -> DragPreview?)? = None
get: public read-only
Uses the platform default when the callback returns None; absent draws the visible selection.
property threshold
source · line 14public
public val threshold: Double = 4.0
get: public read-only
property copyPolicy
source · line 16public
public val copyPolicy: TextCopyPolicy = TextCopyPolicy.Default
get: public read-only
property enabled
source · line 13public
public val enabled: Boolean = true
get: public read-only
constructor constructor
source · line 12public
constructor(public val enabled: Boolean = true, public val threshold: Double = 4.0, public val effects: DragEffects = DragEffects(true, true, false), public val copyPolicy: TextCopyPolicy = TextCopyPolicy.Default, public val preview: ((DragSourceStart, String) -> DragPreview?)? = None, public val onCompleted: (TextDragResult) -> Unit = {})
parameter preview
source · line 18public
public val preview: ((DragSourceStart, String) -> DragPreview?)? = None
parameter threshold
source · line 14public
public val threshold: Double = 4.0
parameter enabled
source · line 13public
public val enabled: Boolean = true
parameter copyPolicy
source · line 16public
public val copyPolicy: TextCopyPolicy = TextCopyPolicy.Default
parameter effects
source · line 15public
public val effects: DragEffects = DragEffects(true, true, false)
parameter onCompleted
source · line 19public
public val onCompleted: (TextDragResult) -> Unit = {}
property effects
source · line 15public
public val effects: DragEffects = DragEffects(true, true, false)
get: public read-only
property onCompleted
source · line 19public
public val onCompleted: (TextDragResult) -> Unit = {}
get: public read-only