Edit

Share via


PresenceService.SetPresenceAsync Method

Definition

Overloads

SetPresenceAsync(Boolean)

Sets presence info for the current user context.

SetPresenceAsync(Boolean, PresenceData)

Sets presence info for the current user context.

SetPresenceAsync(Boolean)

Sets presence info for the current user context.

[Windows.Foundation.Metadata.Overload("SetPresenceAsync2")]
public Windows.Foundation.IAsyncAction SetPresenceAsync (bool isUserActiveInTitle);
abstract member SetPresenceAsync : bool -> Windows.Foundation.IAsyncAction
override this.SetPresenceAsync : bool -> Windows.Foundation.IAsyncAction
Public Function SetPresenceAsync (isUserActiveInTitle As Boolean) As IAsyncAction

Parameters

isUserActiveInTitle
Boolean

Indicates if the current user context is currently active or inactive in the title. The application can choose to set this based on an amount of inactivity.

Returns

Windows.Foundation.IAsyncAction

Implements

Microsoft.Xbox.Services.Presence.__IPresenceServicePublicNonVirtuals.SetPresenceAsync(System.Boolean)
Attributes
Windows.Foundation.Metadata.OverloadAttribute

Remarks

Calls V1 POST /users/xuid({xuid})/devices/current/titles/current

Applies to

SetPresenceAsync(Boolean, PresenceData)

Sets presence info for the current user context.

[Windows.Foundation.Metadata.Overload("SetPresenceAsync1")]
public Windows.Foundation.IAsyncAction SetPresenceAsync (bool isUserActiveInTitle, Microsoft.Xbox.Services.Presence.PresenceData presenceData);
abstract member SetPresenceAsync : bool * Microsoft.Xbox.Services.Presence.PresenceData -> Windows.Foundation.IAsyncAction
override this.SetPresenceAsync : bool * Microsoft.Xbox.Services.Presence.PresenceData -> Windows.Foundation.IAsyncAction

Parameters

isUserActiveInTitle
Boolean

Indicates if the current user context is currently active or inactive in the title. The application can choose to set this based on an amount of inactivity.

presenceData
PresenceData

Current user's presence data. (Optional)

Returns

Windows.Foundation.IAsyncAction

Implements

Microsoft.Xbox.Services.Presence.__IPresenceServicePublicNonVirtuals.SetPresenceAsync(System.Boolean,Microsoft.Xbox.Services.Presence.PresenceData)
Attributes
Windows.Foundation.Metadata.OverloadAttribute

Remarks

Calls V1 POST /users/xuid({xuid})/devices/current/titles/current

Applies to