getName static method
Implementation
static String getName(PlatformMethod method) {
switch (method) {
case PlatformMethod.join:
return 'join';
case PlatformMethod.leave:
return 'leave';
case PlatformMethod.onLeave:
return 'on_leave';
case PlatformMethod.onJoinRoom:
return 'on_join_room';
case PlatformMethod.onUpdateRoom:
return 'on_update_room';
case PlatformMethod.onPeerUpdate:
return 'on_peer_update';
case PlatformMethod.onTrackUpdate:
return 'on_track_update';
case PlatformMethod.onError:
return 'on_error';
case PlatformMethod.onMessage:
return 'on_message';
case PlatformMethod.onUpdateSpeaker:
return 'on_update_speaker';
case PlatformMethod.onReconnecting:
return 'on_re_connecting';
case PlatformMethod.onReconnected:
return 'on_re_connected';
case PlatformMethod.switchAudio:
return 'switch_audio';
case PlatformMethod.switchVideo:
return 'switch_video';
case PlatformMethod.switchCamera:
return 'switch_camera';
case PlatformMethod.isAudioMute:
return 'is_audio_mute';
case PlatformMethod.isVideoMute:
return 'is_video_mute';
case PlatformMethod.getRoom:
return "get_room";
case PlatformMethod.sendBroadcastMessage:
return 'send_broadcast_message';
case PlatformMethod.sendDirectMessage:
return 'send_direct_message';
case PlatformMethod.sendGroupMessage:
return 'send_group_message';
case PlatformMethod.preview:
return 'preview';
case PlatformMethod.acceptChangeRole:
return 'accept_change_role';
case PlatformMethod.changeRole:
return 'change_role';
case PlatformMethod.changeRoleOfPeer:
return 'change_role_of_peer';
case PlatformMethod.getRoles:
return 'get_roles';
case PlatformMethod.changeTrackState:
return 'on_change_track_state_request';
case PlatformMethod.endRoom:
return 'end_room';
case PlatformMethod.removePeer:
return 'remove_peer';
case PlatformMethod.muteRoomAudioLocally:
return 'mute_room_audio_locally';
case PlatformMethod.unMuteRoomAudioLocally:
return 'un_mute_room_audio_locally';
case PlatformMethod.muteRoomVideoLocally:
return 'mute_room_video_locally';
case PlatformMethod.unMuteRoomVideoLocally:
return 'un_mute_room_video_locally';
case PlatformMethod.getLocalPeer:
return 'get_local_peer';
case PlatformMethod.getRemotePeers:
return 'get_remote_peers';
case PlatformMethod.getPeers:
return 'get_peers';
case PlatformMethod.startHMSLogger:
return "start_hms_logger";
case PlatformMethod.removeHMSLogger:
return "remove_hms_logger";
case PlatformMethod.changeTrackStateForRole:
return "change_track_state_for_role";
case PlatformMethod.startRtmpOrRecording:
return "start_rtmp_or_recording";
case PlatformMethod.stopRtmpAndRecording:
return "stop_rtmp_and_recording";
case PlatformMethod.build:
return 'build';
case PlatformMethod.changeMetadata:
return "change_metadata";
case PlatformMethod.setVolume:
return "set_volume";
case PlatformMethod.changeName:
return "change_name";
case PlatformMethod.startHlsStreaming:
return "hls_start_streaming";
case PlatformMethod.stopHlsStreaming:
return "hls_stop_streaming";
case PlatformMethod.startScreenShare:
return "start_screen_share";
case PlatformMethod.stopScreenShare:
return "stop_screen_share";
case PlatformMethod.previewForRole:
return "preview_for_role";
case PlatformMethod.cancelPreview:
return "cancel_preview";
case PlatformMethod.isScreenShareActive:
return 'is_screen_share_active';
case PlatformMethod.getAllTracks:
return "get_all_tracks";
case PlatformMethod.getTrackById:
return "get_track_by_id";
case PlatformMethod.startStatsListener:
return "start_stats_listener";
case PlatformMethod.removeStatsListener:
return "remove_stats_listener";
case PlatformMethod.getAudioDevicesList:
return "get_audio_devices_list";
case PlatformMethod.getCurrentAudioDevice:
return "get_current_audio_device";
case PlatformMethod.switchAudioOutput:
return "switch_audio_output";
case PlatformMethod.startAudioShare:
return "start_audio_share";
case PlatformMethod.stopAudioShare:
return "stop_audio_share";
case PlatformMethod.setAudioMixingMode:
return "set_audio_mixing_mode";
case PlatformMethod.pauseAudioShare:
return "pause_audio_share";
case PlatformMethod.playAudioShare:
return "play_audio_share";
case PlatformMethod.resumeAudioShare:
return "resume_audio_share";
case PlatformMethod.setAudioShareVolume:
return "set_audio_share_volume";
case PlatformMethod.audioSharePlaying:
return "audio_share_playing";
case PlatformMethod.audioShareCurrentTime:
return "audio_share_current_time";
case PlatformMethod.audioShareDuration:
return "audio_share_duration";
case PlatformMethod.getTrackSettings:
return "get_track_settings";
case PlatformMethod.destroy:
return "destroy";
case PlatformMethod.setPlaybackAllowedForTrack:
return "set_playback_allowed_for_track";
case PlatformMethod.enterPipMode:
return "enter_pip_mode";
case PlatformMethod.isPipActive:
return "is_pip_active";
case PlatformMethod.isPipAvailable:
return "is_pip_available";
case PlatformMethod.setSimulcastLayer:
return "set_simulcast_layer";
case PlatformMethod.changeRoleOfPeersWithRoles:
return "change_role_of_peers_with_roles";
case PlatformMethod.getLayer:
return "get_layer";
case PlatformMethod.getLayerDefinition:
return "get_layer_definition";
case PlatformMethod.setupPIP:
return "setup_pip";
case PlatformMethod.stopPIP:
return "stop_pip";
case PlatformMethod.startPIP:
return "start_pip";
case PlatformMethod.changeTrackPIP:
return "change_track_pip";
case PlatformMethod.changeTextPIP:
return "change_text_pip";
case PlatformMethod.destroyPIP:
return "destroy_pip";
case PlatformMethod.toggleMicMuteState:
return "toggle_mic_mute_state";
case PlatformMethod.toggleCameraMuteState:
return "toggle_camera_mute_state";
case PlatformMethod.captureSnapshot:
return "capture_snapshot";
case PlatformMethod.getAllLogs:
return "get_all_logs";
case PlatformMethod.getAuthTokenByRoomCode:
return "get_auth_token_by_room_code";
case PlatformMethod.captureImageAtMaxSupportedResolution:
return "capture_image_at_max_supported_resolution";
case PlatformMethod.isFlashSupported:
return "is_flash_supported";
case PlatformMethod.toggleFlash:
return "toggle_flash";
case PlatformMethod.getSessionMetadataForKey:
return "get_session_metadata_for_key";
case PlatformMethod.setSessionMetadataForKey:
return "set_session_metadata_for_key";
case PlatformMethod.addKeyChangeListener:
return "add_key_change_listener";
case PlatformMethod.removeKeyChangeListener:
return "remove_key_change_listener";
///HLS Player methods
case PlatformMethod.start:
return "start_hls_player";
case PlatformMethod.stop:
return "stop_hls_player";
case PlatformMethod.pause:
return "pause_hls_player";
case PlatformMethod.resume:
return "resume_hls_player";
case PlatformMethod.seekToLivePosition:
return "seek_to_live_position";
case PlatformMethod.seekForward:
return "seek_forward";
case PlatformMethod.seekBackward:
return "seek_backward";
case PlatformMethod.setHLSPlayerVolume:
return "set_hls_player_volume";
case PlatformMethod.addHLSStatsListener:
return "add_hls_stats_listener";
case PlatformMethod.removeHLSStatsListener:
return "remove_hls_stats_listener";
case PlatformMethod.areClosedCaptionsSupported:
return "are_closed_captions_supported";
case PlatformMethod.enableClosedCaptions:
return "enable_closed_captions";
case PlatformMethod.disableClosedCaptions:
return "disable_closed_captions";
case PlatformMethod.getStreamProperties:
return "get_stream_properties";
case PlatformMethod.switchAudioOutputUsingiOSUI:
return "switch_audio_output_using_ios_ui";
case PlatformMethod.sendHLSTimedMetadata:
return "send_hls_timed_metadata";
case PlatformMethod.toggleAlwaysScreenOn:
return "toggle_always_screen_on";
case PlatformMethod.getRoomLayout:
return "get_room_layout";
///Peer list iterator methods
case PlatformMethod.getPeerListIterator:
return "get_peer_list_iterator";
case PlatformMethod.peerListIteratorHasNext:
return "peer_list_iterator_has_next";
case PlatformMethod.peerListIteratorNext:
return "peer_list_iterator_next";
///Raise/Lower Hand
case PlatformMethod.lowerLocalPeerHand:
return "lower_local_peer_hand";
case PlatformMethod.lowerRemotePeerHand:
return "lower_remote_peer_hand";
case PlatformMethod.raiseLocalPeerHand:
return "raise_local_peer_hand";
///TextureView methods
case PlatformMethod.createTextureView:
return "create_texture_view";
case PlatformMethod.disposeTextureView:
return "dispose_texture_view";
case PlatformMethod.addTrack:
return "add_track";
case PlatformMethod.removeTrack:
return "remove_track";
case PlatformMethod.setDisplayResolution:
return "set_display_resolution";
///Poll Methods
case PlatformMethod.addPollUpdateListener:
return "add_poll_update_listener";
case PlatformMethod.removePollUpdateListener:
return "remove_poll_update_listener";
case PlatformMethod.quickStartPoll:
return "quick_start_poll";
case PlatformMethod.addSingleChoicePollResponse:
return "add_single_choice_poll_response";
case PlatformMethod.addMultiChoicePollResponse:
return "add_multi_choice_poll_response";
case PlatformMethod.stopPoll:
return "stop_poll";
case PlatformMethod.fetchLeaderboard:
return "fetch_leaderboard";
case PlatformMethod.fetchPollList:
return "fetch_poll_list";
case PlatformMethod.fetchPollQuestions:
return "fetch_poll_questions";
case PlatformMethod.getPollResults:
return "get_poll_results";
///Noise cancellation Methods
case PlatformMethod.enableNoiseCancellation:
return "enable_noise_cancellation";
case PlatformMethod.disableNoiseCancellation:
return "disable_noise_cancellation";
case PlatformMethod.isNoiseCancellationEnabled:
return "is_noise_cancellation_enabled";
case PlatformMethod.isNoiseCancellationAvailable:
return "is_noise_cancellation_available";
default:
return 'unknown';
}
}