Contents

SystemCoordinator.ParticipantState

A structure that tells you whether a participant supports a shared simulation space for the current activity.

Declaration

struct ParticipantState

Mentioned in

Overview

A SystemCoordinator.ParticipantState structure reports the current person’s ability to display a spatial Persona when joined to a group activity. A person can display a spatial Persona only if the device supports it, and only if they configured that spatial Persona in advance.

When someone’s spatial Persona is active, SharePlay positions the person in the scene relative to the shared content. When that happens, share any extra activity-related details that preserve the shared context of the scene. For example, when one person scrolls the content in a shared window, communicate the new scroll position as an activity update. When your app receives those extra updates, apply them only if the current spatial Persona is also active.

Observe the participant’s spatial state from the localParticipantState property of your session’s SystemCoordinator object. Spatial state information can change, so update your app’s presentation to reflect the person’s current support for the activity.

Topics

Getting the participant details

Structures

Instance Properties

See Also

Spatial activities