VibrationEffect.Composition.DelayTypePause Field
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.
Caution
This constant will be removed in the future version. Use Android.OS.VibrationEffectCompositionDelayType enum directly instead of this field.
The delay represents a pause in the composition between the end of the previous primitive and the beginning of the next one.
[Android.Runtime.Register("DELAY_TYPE_PAUSE", ApiSince=36)]
[System.Obsolete("This constant will be removed in the future version. Use Android.OS.VibrationEffectCompositionDelayType enum directly instead of this field.", true)]
public const Android.OS.VibrationEffectCompositionDelayType DelayTypePause = 0;
[<Android.Runtime.Register("DELAY_TYPE_PAUSE", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.OS.VibrationEffectCompositionDelayType enum directly instead of this field.", true)>]
val mutable DelayTypePause : Android.OS.VibrationEffectCompositionDelayType
Field Value
Value = 0- Attributes
Remarks
The delay represents a pause in the composition between the end of the previous primitive and the beginning of the next one.
The primitive will start after the requested pause after the last primitive ended. The actual time the primitive will be played depends on the previous primitive's actual duration on the device hardware. This enables the combination of primitives to create more complex effects based on how close to each other they'll play. Here is an example:
VibrationEffect popEffect = VibrationEffect.startComposition()
.addPrimitive(PRIMITIVE_QUICK_RISE)
.addPrimitive(PRIMITIVE_CLICK, 0.7, 50, DELAY_TYPE_PAUSE)
.compose()
Java documentation for android.os.VibrationEffect.Composition.DELAY_TYPE_PAUSE
.
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.