Share via


GameBarServices Class

Definition

Manages the state of the Game Bar.

public ref class GameBarServices sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.Capture.GameBarContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GameBarServices final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.Capture.GameBarContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GameBarServices
Public NotInheritable Class GameBarServices
Inheritance
Object Platform::Object IInspectable GameBarServices
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.15063.0)
API contract
Windows.Media.Capture.GameBarContract (introduced in v1.0)
App capabilities
gameBarServices

Remarks

This API may throw an error if the background service has shut down due to idle timeout.

Properties

AppBroadcastServices

Gets an object that manages app broadcasts.

AppCaptureServices

Gets an object that manages app capture.

SessionId

Gets a unique identifier for the Game Bar session.

TargetCapturePolicy

Gets the policy for app capture of a target.

TargetInfo

Gets an object that provides metadata for an app capture target.

Methods

DisableCapture()

Disables app capture.

EnableCapture()

Enables app capture.

Events

CommandReceived

Occurs when a Game Bar command is received.

Applies to