Share via


AudioManager.GetProperty(String) Method

Definition

Returns the value of the property with the specified key.

[Android.Runtime.Register("getProperty", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetProperty_Ljava_lang_String_Handler")]
public virtual string? GetProperty (string? key);
[<Android.Runtime.Register("getProperty", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetProperty_Ljava_lang_String_Handler")>]
abstract member GetProperty : string -> string
override this.GetProperty : string -> string

Parameters

key
String

One of the strings corresponding to a property key: either #PROPERTY_OUTPUT_SAMPLE_RATE, #PROPERTY_OUTPUT_FRAMES_PER_BUFFER, #PROPERTY_SUPPORT_MIC_NEAR_ULTRASOUND, #PROPERTY_SUPPORT_SPEAKER_NEAR_ULTRASOUND, or #PROPERTY_SUPPORT_AUDIO_SOURCE_UNPROCESSED.

Returns

A string representing the associated value for that property key, or null if there is no value for that key.

Attributes

Remarks

Returns the value of the property with the specified key.

Java documentation for android.media.AudioManager.getProperty(java.lang.String).

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