Merge "Provide deprecated API to avoid build breakage"
This commit is contained in:
committed by
Android (Google) Code Review
commit
84d7e77ace
@@ -37853,6 +37853,7 @@ package android.speech.tts {
|
||||
method public void onRangeStart(java.lang.String, int, int, int);
|
||||
method public abstract void onStart(java.lang.String);
|
||||
method public void onStop(java.lang.String, boolean);
|
||||
method public deprecated void onUtteranceRangeStart(java.lang.String, int, int);
|
||||
}
|
||||
|
||||
public class Voice implements android.os.Parcelable {
|
||||
|
||||
@@ -40988,6 +40988,7 @@ package android.speech.tts {
|
||||
method public void onRangeStart(java.lang.String, int, int, int);
|
||||
method public abstract void onStart(java.lang.String);
|
||||
method public void onStop(java.lang.String, boolean);
|
||||
method public deprecated void onUtteranceRangeStart(java.lang.String, int, int);
|
||||
}
|
||||
|
||||
public class Voice implements android.os.Parcelable {
|
||||
|
||||
@@ -38054,6 +38054,7 @@ package android.speech.tts {
|
||||
method public void onRangeStart(java.lang.String, int, int, int);
|
||||
method public abstract void onStart(java.lang.String);
|
||||
method public void onStop(java.lang.String, boolean);
|
||||
method public deprecated void onUtteranceRangeStart(java.lang.String, int, int);
|
||||
}
|
||||
|
||||
public class Voice implements android.os.Parcelable {
|
||||
|
||||
@@ -137,7 +137,15 @@ public abstract class UtteranceProgressListener {
|
||||
* @param end The end index of the range (exclusive) in the utterance text.
|
||||
* @param frame The position in frames in the audio of the request where this range is spoken.
|
||||
*/
|
||||
public void onRangeStart(String utteranceId, int start, int end, int frame) {}
|
||||
public void onRangeStart(String utteranceId, int start, int end, int frame) {
|
||||
onUtteranceRangeStart(utteranceId, start, end);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Due to internal API changes. Remove when apps catch up.
|
||||
*/
|
||||
public void onUtteranceRangeStart(String utteranceId, int start, int end) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Wraps an old deprecated OnUtteranceCompletedListener with a shiny new progress listener.
|
||||
|
||||
Reference in New Issue
Block a user