VibrationEffect.Composition.DelayTypeRelativeStartOffset フィールド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
This constant will be removed in the future version. Use Android.OS.VibrationEffectCompositionDelayType enum directly instead of this field.
遅延は、コンポジション内の前のプリミティブの開始時刻を基準にして、このプリミティブを開始する前のオフセットを表します。
[Android.Runtime.Register("DELAY_TYPE_RELATIVE_START_OFFSET", 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 DelayTypeRelativeStartOffset = 1;
[<Android.Runtime.Register("DELAY_TYPE_RELATIVE_START_OFFSET", 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 DelayTypeRelativeStartOffset : Android.OS.VibrationEffectCompositionDelayType
フィールド値
Value = 1- 属性
注釈
遅延は、コンポジション内の前のプリミティブの開始時刻を基準にして、このプリミティブを開始する前のオフセットを表します。
プリミティブは、デバイス ハードウェアでのプリミティブの実際の継続時間とは無関係に、最後のプリミティブの開始後に要求された固定時間から開始されます。 これにより、コンポジション内のプリミティブの正確なタイミングが可能になり、必要な間隔で再生されます。 例を次に示します。
VibrationEffect.startComposition()
.addPrimitive(PRIMITIVE_CLICK, 1.0)
.addPrimitive(PRIMITIVE_TICK, 1.0, 20, DELAY_TYPE_RELATIVE_START_OFFSET)
.addPrimitive(PRIMITIVE_THUD, 1.0, 80, DELAY_TYPE_RELATIVE_START_OFFSET)
.compose()
デバイスで次のように実行されます。
0ms 20ms 100ms
PRIMITIVE_CLICK---PRIMITIVE_TICK-----------PRIMITIVE_THUD
プリミティブは、前のプリミティブと重なる場合、コンポジションから削除されます。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。