C# Class Google.Cast.RemoteDisplay.Internal.CastRemoteDisplayExtensionManager

Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: googlecast/RemoteDisplayUnitySample Class Usage Examples

Public Methods

Method Description
GetCastDevices ( ) : List
GetCastVolume ( ) : float
GetLastError ( ) : CastError
GetSelectedCastDevice ( ) : CastDevice
IsCasting ( ) : bool
OnAudioFilterRead ( float data, int channels ) : void
OnGUI ( ) : void
SelectCastDevice ( string deviceId ) : void
SetCastVolume ( float volume ) : void
SetEventHandlers ( CastEventHandler onCastDevicesUpdatedCallback, CastEventHandler onRemoteDisplaySessionStartCallback, CastEventHandler onRemoteDisplaySessionEndCallback, CastEventHandler onErrorCallback, CastVolumeHandler onVolumeChangedCallback ) : void
StopRemoteDisplaySession ( ) : void
UpdateAudioListener ( AudioListener previouslistener, AudioListener newlistener ) : void
UpdateRemoteDisplayTexture ( ) : void
_callback_OnCastDevicesUpdated ( string dummy ) : void
_callback_OnCastError ( string rawErrorString ) : void
_callback_OnRemoteDisplaySessionEnd ( string dummy ) : void
_callback_OnRemoteDisplaySessionStart ( string deviceId ) : void
_callback_OnVolumeUpdated ( string volumeString ) : void

Private Methods

Method Description
Activate ( ) : void
Awake ( ) : void
CacheSelectedDevice ( string deviceId ) : void
Deactivate ( ) : void
DiscardGeneratedTextureIfNeeded ( ) : void
MaybeRenderFrame ( ) : void
OnApplicationPause ( bool paused ) : void
OnDisable ( ) : void
OnEnable ( ) : void
RenderRemoteDisplayCoroutine ( ) : IEnumerator
SetVolumeDeferred ( ) : IEnumerator
Update ( ) : void
UpdateCastDevicesFromNativeCode ( ) : void
checkValidTexture ( ) : void
disconnect ( ) : void
extractErrorCode ( string rawErrorString ) : CastErrorCode
extractErrorString ( string rawErrorString ) : string

Method Details

GetCastDevices() public method

public GetCastDevices ( ) : List
return List

GetCastVolume() public method

public GetCastVolume ( ) : float
return float

GetLastError() public method

public GetLastError ( ) : CastError
return CastError

GetSelectedCastDevice() public method

public GetSelectedCastDevice ( ) : CastDevice
return CastDevice

IsCasting() public method

public IsCasting ( ) : bool
return bool

OnAudioFilterRead() public method

public OnAudioFilterRead ( float data, int channels ) : void
data float
channels int
return void

OnGUI() public method

public OnGUI ( ) : void
return void

SelectCastDevice() public method

public SelectCastDevice ( string deviceId ) : void
deviceId string
return void

SetCastVolume() public method

public SetCastVolume ( float volume ) : void
volume float
return void

SetEventHandlers() public method

public SetEventHandlers ( CastEventHandler onCastDevicesUpdatedCallback, CastEventHandler onRemoteDisplaySessionStartCallback, CastEventHandler onRemoteDisplaySessionEndCallback, CastEventHandler onErrorCallback, CastVolumeHandler onVolumeChangedCallback ) : void
onCastDevicesUpdatedCallback CastEventHandler
onRemoteDisplaySessionStartCallback CastEventHandler
onRemoteDisplaySessionEndCallback CastEventHandler
onErrorCallback CastEventHandler
onVolumeChangedCallback CastVolumeHandler
return void

StopRemoteDisplaySession() public method

public StopRemoteDisplaySession ( ) : void
return void

UpdateAudioListener() public method

public UpdateAudioListener ( AudioListener previouslistener, AudioListener newlistener ) : void
previouslistener UnityEngine.AudioListener
newlistener UnityEngine.AudioListener
return void

UpdateRemoteDisplayTexture() public method

public UpdateRemoteDisplayTexture ( ) : void
return void

_callback_OnCastDevicesUpdated() public method

public _callback_OnCastDevicesUpdated ( string dummy ) : void
dummy string
return void

_callback_OnCastError() public method

public _callback_OnCastError ( string rawErrorString ) : void
rawErrorString string
return void

_callback_OnRemoteDisplaySessionEnd() public method

public _callback_OnRemoteDisplaySessionEnd ( string dummy ) : void
dummy string
return void

_callback_OnRemoteDisplaySessionStart() public method

public _callback_OnRemoteDisplaySessionStart ( string deviceId ) : void
deviceId string
return void

_callback_OnVolumeUpdated() public method

public _callback_OnVolumeUpdated ( string volumeString ) : void
volumeString string
return void