pub struct BrowseControllerProxy { /* private fields */ }
Implementations§
source§impl BrowseControllerProxy
impl BrowseControllerProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.avrcp/BrowseController.
sourcepub fn take_event_stream(&self) -> BrowseControllerEventStream
pub fn take_event_stream(&self) -> BrowseControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn get_media_player_items(
&self,
start_index: u32,
end_index: u32
) -> QueryResponseFut<BrowseControllerGetMediaPlayerItemsResult>
pub fn get_media_player_items( &self, start_index: u32, end_index: u32 ) -> QueryResponseFut<BrowseControllerGetMediaPlayerItemsResult>
Used for GetFolderItems(MediaPlayerList). Gets the list of media players. End index is inclusive.
sourcepub fn get_now_playing_items(
&self,
start_index: u32,
end_index: u32,
attribute_option: &AttributeRequestOption
) -> QueryResponseFut<BrowseControllerGetNowPlayingItemsResult>
pub fn get_now_playing_items( &self, start_index: u32, end_index: u32, attribute_option: &AttributeRequestOption ) -> QueryResponseFut<BrowseControllerGetNowPlayingItemsResult>
Used for GetFolderItems(NowPlayingList). Gets the list of items from the now playing list aka the queue of the addressed media player.
- request
end_index
is inclusive.
sourcepub fn get_file_system_items(
&self,
start_index: u32,
end_index: u32,
attribute_option: &AttributeRequestOption
) -> QueryResponseFut<BrowseControllerGetFileSystemItemsResult>
pub fn get_file_system_items( &self, start_index: u32, end_index: u32, attribute_option: &AttributeRequestOption ) -> QueryResponseFut<BrowseControllerGetFileSystemItemsResult>
Used for GetFolderItems(MediaPlayerVirtualFilesystem). Gets the list of folder item/media element item.
- request
end_index
is inclusive.
sourcepub fn change_path(
&self,
path: &Path
) -> QueryResponseFut<BrowseControllerChangePathResult>
pub fn change_path( &self, path: &Path ) -> QueryResponseFut<BrowseControllerChangePathResult>
Used for ChangePath browse command.
- request
path
dictates whether or not the direction will be Move Up or Move down. Ifpath.parent
is set, direction will be Move Up. Ifpath.child_folder_uid
is set, direction will be Move Down.
sourcepub fn play_file_system_item(
&self,
uid: u64
) -> QueryResponseFut<BrowseControllerPlayFileSystemItemResult>
pub fn play_file_system_item( &self, uid: u64 ) -> QueryResponseFut<BrowseControllerPlayFileSystemItemResult>
Used for PlayItem(FileSystem).
sourcepub fn play_now_playing_item(
&self,
uid: u64
) -> QueryResponseFut<BrowseControllerPlayNowPlayingItemResult>
pub fn play_now_playing_item( &self, uid: u64 ) -> QueryResponseFut<BrowseControllerPlayNowPlayingItemResult>
Used for PlayItem(NowPlayingList). Plays the specified item from the now playing list aka the queue of the addressed media player.
sourcepub fn set_browsed_player(
&self,
player_id: u16
) -> QueryResponseFut<BrowseControllerSetBrowsedPlayerResult>
pub fn set_browsed_player( &self, player_id: u16 ) -> QueryResponseFut<BrowseControllerSetBrowsedPlayerResult>
Changes the addressed player_id
on the target when multiple are supported.
Trait Implementations§
source§impl BrowseControllerProxyInterface for BrowseControllerProxy
impl BrowseControllerProxyInterface for BrowseControllerProxy
type GetMediaPlayerItemsResponseFut = QueryResponseFut<Result<Vec<MediaPlayerItem>, BrowseControllerError>>
fn get_media_player_items( &self, start_index: u32, end_index: u32 ) -> Self::GetMediaPlayerItemsResponseFut
type GetNowPlayingItemsResponseFut = QueryResponseFut<Result<Vec<MediaElementItem>, BrowseControllerError>>
fn get_now_playing_items( &self, start_index: u32, end_index: u32, attribute_option: &AttributeRequestOption ) -> Self::GetNowPlayingItemsResponseFut
type GetFileSystemItemsResponseFut = QueryResponseFut<Result<Vec<FileSystemItem>, BrowseControllerError>>
fn get_file_system_items( &self, start_index: u32, end_index: u32, attribute_option: &AttributeRequestOption ) -> Self::GetFileSystemItemsResponseFut
type ChangePathResponseFut = QueryResponseFut<Result<u32, BrowseControllerError>>
fn change_path(&self, path: &Path) -> Self::ChangePathResponseFut
type PlayFileSystemItemResponseFut = QueryResponseFut<Result<(), BrowseControllerError>>
fn play_file_system_item(&self, uid: u64) -> Self::PlayFileSystemItemResponseFut
type PlayNowPlayingItemResponseFut = QueryResponseFut<Result<(), BrowseControllerError>>
fn play_now_playing_item(&self, uid: u64) -> Self::PlayNowPlayingItemResponseFut
type SetBrowsedPlayerResponseFut = QueryResponseFut<Result<(), BrowseControllerError>>
fn set_browsed_player( &self, player_id: u16 ) -> Self::SetBrowsedPlayerResponseFut
source§impl Clone for BrowseControllerProxy
impl Clone for BrowseControllerProxy
source§fn clone(&self) -> BrowseControllerProxy
fn clone(&self) -> BrowseControllerProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BrowseControllerProxy
impl Debug for BrowseControllerProxy
source§impl Proxy for BrowseControllerProxy
impl Proxy for BrowseControllerProxy
§type Protocol = BrowseControllerMarker
type Protocol = BrowseControllerMarker
Proxy
controls.