View.RequestedFrameRate 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.
Get the current preferred frame rate of the View. -or- You can set the preferred frame rate for a View using a positive number or by specifying the preferred frame rate category using constants, including REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE, REQUESTED_FRAME_RATE_CATEGORY_LOW, REQUESTED_FRAME_RATE_CATEGORY_NORMAL, REQUESTED_FRAME_RATE_CATEGORY_HIGH.
public virtual float RequestedFrameRate { [Android.Runtime.Register("getRequestedFrameRate", "()F", "GetGetRequestedFrameRateHandler", ApiSince=35)] get; [Android.Runtime.Register("setRequestedFrameRate", "(F)V", "GetSetRequestedFrameRate_FHandler", ApiSince=35)] set; }
[<get: Android.Runtime.Register("getRequestedFrameRate", "()F", "GetGetRequestedFrameRateHandler", ApiSince=35)>]
[<set: Android.Runtime.Register("setRequestedFrameRate", "(F)V", "GetSetRequestedFrameRate_FHandler", ApiSince=35)>]
member this.RequestedFrameRate : single with get, set
Property Value
REQUESTED_FRAME_RATE_CATEGORY_DEFAULT by default,
or value passed to #setRequestedFrameRate(float)
.
- Attributes
Remarks
Property getter documentation:
Get the current preferred frame rate of the View. The value could be negative when preferred frame rate category is set instead of perferred frame rate. The frame rate category includes REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE, REQUESTED_FRAME_RATE_CATEGORY_LOW, REQUESTED_FRAME_RATE_CATEGORY_NORMAL, and REQUESTED_FRAME_RATE_CATEGORY_HIGH. Note that the frame rate value is valid as long as the View is invalidated.
Java documentation for android.view.View.getRequestedFrameRate()
.
Property setter documentation:
You can set the preferred frame rate for a View using a positive number or by specifying the preferred frame rate category using constants, including REQUESTED_FRAME_RATE_CATEGORY_NO_PREFERENCE, REQUESTED_FRAME_RATE_CATEGORY_LOW, REQUESTED_FRAME_RATE_CATEGORY_NORMAL, REQUESTED_FRAME_RATE_CATEGORY_HIGH. Keep in mind that the preferred frame rate affects the frame rate for the next frame, so use this method carefully. It's important to note that the preference is valid as long as the View is invalidated.
Java documentation for android.view.View.setRequestedFrameRate(float)
.
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.