Android.Speech.Tts.TextToSpeech.AddEarcon Method
Adds a mapping between a string of text and a sound resource in a package.

Syntax

[Android.Runtime.Register("addEarcon", "(Ljava/lang/String;Ljava/lang/String;I)I", "GetAddEarcon_Ljava_lang_String_Ljava_lang_String_IHandler")]
[return:Android.Runtime.GeneratedEnum]
public virtual OperationResult AddEarcon (string earcon, string packagename, int resourceId)

Parameters

earcon
The name of the earcon. Example: "[tick]"

packagename
the package name of the application that contains the resource. This can for instance be the package name of your own application. Example: "com.google.marvin.compass"

The package name can be found in the AndroidManifest.xml of the application containing the resource.

<manifest xmlns:android="..." package="com.google.marvin.compass">

resourceId
Example: R.raw.tick_snd

Returns

Documentation for this section has not yet been entered.

Remarks

Adds a mapping between a string of text and a sound resource in a package. Use this to add custom earcons.

[Android Documentation]

Requirements

Namespace: Android.Speech.Tts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4