Interface IExternalAppHost
- Namespace
- S1API.ExternalHosting
- Assembly
- S1API.dll
Opts a phone or TV app into creating an independent UI for another display. The original device instance and its canvas remain owned by S1API.
public interface IExternalAppHost
- Extension Methods
Properties
AllowExternalHosting
Whether this app currently permits an independent display session. Return false when an equivalent app is already supplied by the display mod. After changing this value, call Refresh(IExternalAppHost?) on the game thread to update catalog membership and notify displays.
bool AllowExternalHosting { get; }
Property Value
Methods
CreateExternalSession(GameObject, Action)
Creates a new session under a display-owned container. The session must not call the phone or TV navigation methods or move the original device UI.
IExternalAppSession CreateExternalSession(GameObject container, Action requestClose)
Parameters
containerGameObjectThe UI root owned by the external display.
requestCloseActionCloses only the external display session.
Returns
- IExternalAppSession
An independently owned session.