View.FrameContentVelocity 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 velocity of the View. -or- Set the current velocity of the View, we only track positive value.
public virtual float FrameContentVelocity { [Android.Runtime.Register("getFrameContentVelocity", "()F", "GetGetFrameContentVelocityHandler", ApiSince=35)] get; [Android.Runtime.Register("setFrameContentVelocity", "(F)V", "GetSetFrameContentVelocity_FHandler", ApiSince=35)] set; }
[<get: Android.Runtime.Register("getFrameContentVelocity", "()F", "GetGetFrameContentVelocityHandler", ApiSince=35)>]
[<set: Android.Runtime.Register("setFrameContentVelocity", "(F)V", "GetSetFrameContentVelocity_FHandler", ApiSince=35)>]
member this.FrameContentVelocity : single with get, set
Property Value
0 by default, or value passed to #setFrameContentVelocity(float)
.
- Attributes
Remarks
Property getter documentation:
Get the current velocity of the View. The value should always be greater than or equal to 0. Note that this is only valid till the next drawn frame.
Java documentation for android.view.View.getFrameContentVelocity()
.
Property setter documentation:
Set the current velocity of the View, we only track positive value. We will use the velocity information to adjust the frame rate when applicable. For example, we could potentially lower the frame rate when the velocity of a fling gesture becomes slower. Note that this is only valid till the next drawn frame.
Java documentation for android.view.View.setFrameContentVelocity(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.