Język

Toast.Duration Property

Definition

Return the duration. -or- Set how long to show the view for.

public virtual Android.Widget.ToastLength Duration { [Android.Runtime.Register("getDuration", "()I", "GetGetDurationHandler")] get; [Android.Runtime.Register("setDuration", "(I)V", "GetSetDuration_IHandler")] set; }
[<get: Android.Runtime.Register("getDuration", "()I", "GetGetDurationHandler")>]
[<set: Android.Runtime.Register("setDuration", "(I)V", "GetSetDuration_IHandler")>]
member this.Duration : Android.Widget.ToastLength with get, set

Property Value

Value is one of the following: LENGTH_SHORT LENGTH_LONG

Attributes

Remarks

Property getter documentation:

Return the duration.

Java documentation for android.widget.Toast.getDuration().

Property setter documentation:

Set how long to show the view for.

Java documentation for android.widget.Toast.setDuration(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also