PresenceService.SetPresenceAsync 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
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
Implements
- 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
Implements
- Attributes
-
Windows.Foundation.Metadata.OverloadAttribute
Remarks
Calls V1 POST /users/xuid({xuid})/devices/current/titles/current