mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Expose isTrusted property of ControllerInfo.
PiperOrigin-RevId: 585052580
This commit is contained in:
parent
c0ef5f6de4
commit
bc36553e81
1 changed files with 4 additions and 3 deletions
|
|
@ -554,10 +554,11 @@ public class MediaSession {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns if the controller has been granted {@code android.permission.MEDIA_CONTENT_CONTROL}
|
* Returns if the controller has been granted {@code android.permission.MEDIA_CONTENT_CONTROL}
|
||||||
* or has a enabled notification listener so it can be trusted to accept connection and incoming
|
* or has an enabled notification listener so it can be trusted to accept connection and
|
||||||
* command request.
|
* incoming command requests.
|
||||||
*/
|
*/
|
||||||
/* package */ boolean isTrusted() {
|
@UnstableApi
|
||||||
|
public boolean isTrusted() {
|
||||||
return isTrusted;
|
return isTrusted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue