TvInputService.RecordingSession.OnStartRecording Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OnStartRecording(Uri) |
Called when the application requests to start TV program recording. |
OnStartRecording(Uri, Bundle) |
Called when the application requests to start TV program recording. |
OnStartRecording(Uri)
Called when the application requests to start TV program recording.
[Android.Runtime.Register("onStartRecording", "(Landroid/net/Uri;)V", "GetOnStartRecording_Landroid_net_Uri_Handler", ApiSince=24)]
public abstract void OnStartRecording (Android.Net.Uri? programUri);
[<Android.Runtime.Register("onStartRecording", "(Landroid/net/Uri;)V", "GetOnStartRecording_Landroid_net_Uri_Handler", ApiSince=24)>]
abstract member OnStartRecording : Android.Net.Uri -> unit
Parameters
- programUri
- Uri
The URI for the TV program to record, built by
TvContract#buildProgramUri(long)
. Can be null
.
- Attributes
Remarks
Called when the application requests to start TV program recording. Recording must start immediately when this method is called.
The application may supply the URI for a TV program for filling in program specific data fields in the android.media.tv.TvContract.RecordedPrograms
table. A non-null programUri
implies the started recording should be of that specific program, whereas null programUri
does not impose such a requirement and the recording can span across multiple TV programs. In either case, the application must call TvRecordingClient#stopRecording()
to stop the recording.
The session must call #notifyError(int)
if the start request cannot be fulfilled.
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
OnStartRecording(Uri, Bundle)
Called when the application requests to start TV program recording.
[Android.Runtime.Register("onStartRecording", "(Landroid/net/Uri;Landroid/os/Bundle;)V", "GetOnStartRecording_Landroid_net_Uri_Landroid_os_Bundle_Handler", ApiSince=30)]
public virtual void OnStartRecording (Android.Net.Uri? programUri, Android.OS.Bundle params);
[<Android.Runtime.Register("onStartRecording", "(Landroid/net/Uri;Landroid/os/Bundle;)V", "GetOnStartRecording_Landroid_net_Uri_Landroid_os_Bundle_Handler", ApiSince=30)>]
abstract member OnStartRecording : Android.Net.Uri * Android.OS.Bundle -> unit
override this.OnStartRecording : Android.Net.Uri * Android.OS.Bundle -> unit
Parameters
- programUri
- Uri
The URI for the TV program to record, built by
TvContract#buildProgramUri(long)
. Can be null
.
- params
- Bundle
Domain-specific data for this tune request. Keys <em>must</em> be a scoped name, i.e. prefixed with a package name you own, so that different developers will not create conflicting keys.
- Attributes
Remarks
Called when the application requests to start TV program recording. Recording must start immediately when this method is called.
The application may supply the URI for a TV program for filling in program specific data fields in the android.media.tv.TvContract.RecordedPrograms
table. A non-null programUri
implies the started recording should be of that specific program, whereas null programUri
does not impose such a requirement and the recording can span across multiple TV programs. In either case, the application must call TvRecordingClient#stopRecording()
to stop the recording.
The session must call #notifyError(int)
if the start request cannot be fulfilled.
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.