/** * Stops the current remote display session. This can be used in the middle of the game to let * the user stop and disconnect and later select another Cast device. */ public void StopRemoteDisplaySession() { if (castRemoteDisplayExtension != null) { castRemoteDisplayExtension.StopRemoteDisplaySession(); } }
/** * Stops the current remote display session. This can be used in the middle of the game to let * the user stop and disconnect and later select another Cast device. */ public void StopRemoteDisplaySession() { DiscardGeneratedTextureIfNeeded(); connectedCastDevice = null; isCasting = false; if (castRemoteDisplayExtension != null) { castRemoteDisplayExtension.StopRemoteDisplaySession(); } }