Display.FrameRateVelocityMapping 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.
Retrieves the View frame rate / velocity mapping specifications defined in the framework configuration.
public virtual System.Collections.Generic.IList<Android.Views.FrameRateVelocityPoint> FrameRateVelocityMapping { [Android.Runtime.Register("getFrameRateVelocityMapping", "()Ljava/util/List;", "GetGetFrameRateVelocityMappingHandler", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getFrameRateVelocityMapping", "()Ljava/util/List;", "GetGetFrameRateVelocityMappingHandler", ApiSince=37)>]
member this.FrameRateVelocityMapping : System.Collections.Generic.IList<Android.Views.FrameRateVelocityPoint>
Property Value
A read-only and nonempty List of FrameRateVelocityPoint objects representing the mapping.
- Attributes
Remarks
Retrieves the View frame rate / velocity mapping specifications defined in the framework configuration. For example, 120 frame per second / 300 dp (density-independent pixels) per second
This is primarily for flinging use cases in components like RecyclerView, ScrollView, AbsListView, and NestedScrollView. When the content's velocity is high, a higher frame rate is required to ensure smoothness, and conversely, a lower frame rate can be used when the velocity is low.
These values are specific to this Display instance. If your application moves to a different display (for example, transitioning between the inner and outer screens of a foldable device), you must query these values from the Display object associated with the window where the content is currently being rendered.
Mapping values needs to be re-queried whenever DisplayListener#onDisplayChanged is invoked to ensure data consistency. This corresponds to the DisplayManager#EVENT_FLAG_DISPLAY_CHANGED event.
Android reference for android.view.Display.getFrameRateVelocityMapping.
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.