Udostępnij za pośrednictwem


TvView.TimeShiftPositionCallback.OnTimeShiftCurrentPositionChanged Method

Definition

This is called when the current position for time shifting has changed.

[Android.Runtime.Register("onTimeShiftCurrentPositionChanged", "(Ljava/lang/String;J)V", "GetOnTimeShiftCurrentPositionChanged_Ljava_lang_String_JHandler", ApiSince=23)]
public virtual void OnTimeShiftCurrentPositionChanged (string? inputId, long timeMs);
[<Android.Runtime.Register("onTimeShiftCurrentPositionChanged", "(Ljava/lang/String;J)V", "GetOnTimeShiftCurrentPositionChanged_Ljava_lang_String_JHandler", ApiSince=23)>]
abstract member OnTimeShiftCurrentPositionChanged : string * int64 -> unit
override this.OnTimeShiftCurrentPositionChanged : string * int64 -> unit

Parameters

inputId
String

The ID of the TV input bound to this view.

timeMs
Int64

The current position for time shifting, in milliseconds since the epoch.

Attributes

Remarks

This is called when the current position for time shifting has changed.

The current position for time shifting is the same as the current position of playback. During playback, the current position changes continuously. When paused, it does not change.

Note that timeMs is wall-clock time.

Java documentation for android.media.tv.TvView.TimeShiftPositionCallback.onTimeShiftCurrentPositionChanged(java.lang.String, long).

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