VibratorEnvelopeEffectInfo.MaxDurationMillis 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.
Retrieves the maximum duration supported for an envelope effect, in milliseconds.
public long MaxDurationMillis { [Android.Runtime.Register("getMaxDurationMillis", "()J", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getMaxDurationMillis", "()J", "", ApiSince=36)>]
member this.MaxDurationMillis : int64
Property Value
The maximum duration (in milliseconds) allowed for an envelope effect, or 0 if envelope effects are not supported.
- Attributes
Remarks
Retrieves the maximum duration supported for an envelope effect, in milliseconds.
If the device supports envelope effects (check android.os.VibratorInfo#areEnvelopeEffectsSupported
), this value will be positive. Devices with envelope effects capabilities guarantees a maximum duration equivalent to the product of #getMaxSize()
and #getMaxControlPointDurationMillis()
. If the device does not support envelope effects, this method will return 0.
Java documentation for android.os.vibrator.VibratorEnvelopeEffectInfo.getMaxDurationMillis()
.
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.