Toast.Duration Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.