gpt4 book ai didi

android - Android 4.0 中的 RemoteControlClient 是什么?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:58:59 25 4
gpt4 key购买 nike

我知道 StackOverflow 的规则,因此事先为提出这样一个主观问题而道歉。

我尝试了 documentation但它只是说:

RemoteControlClient enables exposing information meant to be consumed by remote controls capable of displaying metadata, artwork and media transport control buttons.

A remote control client object is associated with a media button event receiver. This event receiver must have been previously registered with registerMediaButtonEventReceiver(ComponentName) before the RemoteControlClient can be registered through registerRemoteControlClient(RemoteControlClient).

我不了解其他人,但对我来说,这么多的文档对于一个名字像“RemoteControlClient”这样酷的东西来说还不够。

我为此搜索了很多论坛,但不幸的是,我仍然不清楚这个概念。

如果有人帮助我理解它,它是如何工作的,最重要的是,它能做什么,我将不胜感激。

提前致谢,对于提出主观问题深表歉意。

最佳答案

http://developer.android.com/about/versions/android-4.0.html

The new RemoteControlClient allows media players to enable playback controls from remote control clients such as the device lock screen. Media players can also expose information about the media currently playing for display on the remote control, such as track information and album art.

以及关于该主题的更多段落。

同时指出:

For a sample implementation, see the Random Music Player, which provides compatibility logic such that it enables the remote control client on Android 4.0 devices while continuing to support devices back to Android 2.1.

关于android - Android 4.0 中的 RemoteControlClient 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12217652/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com