Język

AudioManager.FromContext(Context) Method

Definition

Looks up the context's audio service and casts it to an audio manager.

public static Android.Media.AudioManager? FromContext(Android.Content.Context context);
static member FromContext : Android.Content.Context -> Android.Media.AudioManager

Parameters

context
Context

The context whose audio system service is requested.

Returns

The audio manager returned by the service lookup, or null when the result is not an audio manager.

Remarks

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