Partager via


AccessibilityManager.GetRecommendedTimeoutMillis(Int32, ContentMode) Method

Definition

Get the recommended timeout for changes to the UI needed by this user.

[Android.Runtime.Register("getRecommendedTimeoutMillis", "(II)I", "", ApiSince=29)]
public int GetRecommendedTimeoutMillis (int originalTimeout, Android.Views.Accessibility.ContentMode uiContentFlags);
[<Android.Runtime.Register("getRecommendedTimeoutMillis", "(II)I", "", ApiSince=29)>]
member this.GetRecommendedTimeoutMillis : int * Android.Views.Accessibility.ContentMode -> int

Parameters

originalTimeout
Int32

The timeout appropriate for users with no accessibility needs.

uiContentFlags
ContentMode

The combination of flags #FLAG_CONTENT_ICONS, #FLAG_CONTENT_TEXT or #FLAG_CONTENT_CONTROLS to indicate the contents of UI.

Returns

The recommended UI timeout for the current user in milliseconds.

Attributes

Remarks

Get the recommended timeout for changes to the UI needed by this user. Controls should remain on the screen for at least this long to give users time to react. Some users may need extra time to review the controls, or to reach them, or to activate assistive technology to activate the controls automatically.

Use the combination of content flags to indicate contents of UI. For example, use FLAG_CONTENT_ICONS | FLAG_CONTENT_TEXT for message notification which contains icons and text, or use FLAG_CONTENT_TEXT | FLAG_CONTENT_CONTROLS for button dialog which contains text and button controls. <p/>

Java documentation for android.view.accessibility.AccessibilityManager.getRecommendedTimeoutMillis(int, 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