EmbeddedBiometricPrompt.Builder.SetPreviousTranslationOffset(Int32) Method
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.
Optional: Sets the starting layout translation offset in pixels (px) for the appear (entry) animation of the biometric prompt.
[Android.Runtime.Register("setPreviousTranslationOffset", "(I)Landroid/hardware/biometrics/EmbeddedBiometricPrompt$Builder;", "", ApiSince=37)]
public Android.Hardware.Biometrics.EmbeddedBiometricPrompt.Builder SetPreviousTranslationOffset(int previousTranslationOffset);
[<Android.Runtime.Register("setPreviousTranslationOffset", "(I)Landroid/hardware/biometrics/EmbeddedBiometricPrompt$Builder;", "", ApiSince=37)>]
member this.SetPreviousTranslationOffset : int -> Android.Hardware.Biometrics.EmbeddedBiometricPrompt.Builder
Parameters
- previousTranslationOffset
- Int32
The starting translation offset in pixels (px).
Returns
This builder. This value cannot be null.
- Attributes
Remarks
Optional: Sets the starting layout translation offset in pixels (px) for the appear (entry) animation of the biometric prompt.
When the prompt is shown, its initial position is translated by this offset relative to its final resting position, and it animates to its final centered position (0 translation). If not set, or set to -1, a default system vertical translation is used.
In portrait mode, the offset is applied vertically along the Y-axis.
This absolute pixel value can be used to synchronize the entry of the prompt with the exit animation of a preceding screen in the client application.
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.