RingtoneManager.HasHapticChannels 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.
Overloads
HasHapticChannels(Uri) |
Returns if the |
HasHapticChannels(Int32) |
Returns if the |
HasHapticChannels(Context, Uri) |
Returns if the |
HasHapticChannels(Uri)
Returns if the Ringtone
from a given sound URI contains
haptic channels or not.
[Android.Runtime.Register("hasHapticChannels", "(Landroid/net/Uri;)Z", "", ApiSince=29)]
public static bool HasHapticChannels (Android.Net.Uri ringtoneUri);
[<Android.Runtime.Register("hasHapticChannels", "(Landroid/net/Uri;)Z", "", ApiSince=29)>]
static member HasHapticChannels : Android.Net.Uri -> bool
Parameters
- ringtoneUri
- Uri
The Uri
of a sound or ringtone.
Returns
true if the ringtone contains haptic channels.
- Attributes
Remarks
Returns if the Ringtone
from a given sound URI contains haptic channels or not. As this function doesn't has a context to resolve the uri, the result may be wrong if the uri cannot be resolved correctly. Use #hasHapticChannels(int)
or #hasHapticChannels(Context, Uri)
instead when possible.
Java documentation for android.media.RingtoneManager.hasHapticChannels(android.net.Uri)
.
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.
Applies to
HasHapticChannels(Int32)
Returns if the Ringtone
at the given position in the
Cursor
contains haptic channels.
[Android.Runtime.Register("hasHapticChannels", "(I)Z", "GetHasHapticChannels_IHandler", ApiSince=29)]
public virtual bool HasHapticChannels (int position);
[<Android.Runtime.Register("hasHapticChannels", "(I)Z", "GetHasHapticChannels_IHandler", ApiSince=29)>]
abstract member HasHapticChannels : int -> bool
override this.HasHapticChannels : int -> bool
Parameters
- position
- Int32
The position (in the Cursor
) of the ringtone.
Returns
true if the ringtone contains haptic channels.
- Attributes
Remarks
Returns if the Ringtone
at the given position in the Cursor
contains haptic channels.
Java documentation for android.media.RingtoneManager.hasHapticChannels(int)
.
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.
Applies to
HasHapticChannels(Context, Uri)
Returns if the Ringtone
from a given sound URI contains haptics channels or not.
[Android.Runtime.Register("hasHapticChannels", "(Landroid/content/Context;Landroid/net/Uri;)Z", "", ApiSince=33)]
public static bool HasHapticChannels (Android.Content.Context context, Android.Net.Uri ringtoneUri);
[<Android.Runtime.Register("hasHapticChannels", "(Landroid/content/Context;Landroid/net/Uri;)Z", "", ApiSince=33)>]
static member HasHapticChannels : Android.Content.Context * Android.Net.Uri -> bool
Parameters
- context
- Context
the android.content.Context
to use when resolving the Uri.
- ringtoneUri
- Uri
the Uri
of a sound or ringtone.
Returns
true if the ringtone contains haptic channels.
- Attributes
Remarks
Returns if the Ringtone
from a given sound URI contains haptics channels or not.
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.