VibrationEffect.ParseFromXml(Stream) 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.
Parses a VibrationEffect from an XML input stream.
[Android.Runtime.Register("parseFromXml", "(Ljava/io/InputStream;)Landroid/os/VibrationEffect;", "", ApiSince=37)]
public static Android.OS.VibrationEffect ParseFromXml(System.IO.Stream inputStream);
[<Android.Runtime.Register("parseFromXml", "(Ljava/io/InputStream;)Landroid/os/VibrationEffect;", "", ApiSince=37)>]
static member ParseFromXml : System.IO.Stream -> Android.OS.VibrationEffect
Parameters
- inputStream
- Stream
The input stream containing the XML. This value cannot be null.
Returns
Parsed VibrationEffect. This value cannot be null.
- Attributes
Remarks
Parses a VibrationEffect from an XML input stream.
This method is suitable for dynamic or real-time use cases, such as loading vibration patterns from a network download, external storage, or strings generated on the fly in memory.
For static vibration patterns bundled inside the application package, see android.view.VibrationEffectInflater.from(Context). This method may take several seconds to complete, so it should only be called from a worker thread.
Android reference for android.os.VibrationEffect.parseFromXml.
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.