Java Code Examples for android.media.RemoteControlClient#setPlaybackPositionUpdateListener()
The following examples show how to use
android.media.RemoteControlClient#setPlaybackPositionUpdateListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: d.java From MiBandDecompiled with Apache License 2.0 | 5 votes |
void c() { a.registerReceiver(j, f); l = PendingIntent.getBroadcast(a, 0, g, 0x10000000); m = new RemoteControlClient(l); m.setOnGetPlaybackPositionListener(this); m.setPlaybackPositionUpdateListener(this); }
Example 2
Source File: TransportMediatorJellybeanMR2.java From CodenameOne with GNU General Public License v2.0 | 5 votes |
void windowAttached() { mContext.registerReceiver(mMediaButtonReceiver, mReceiverFilter); mPendingIntent = PendingIntent.getBroadcast(mContext, 0, mIntent, PendingIntent.FLAG_CANCEL_CURRENT); mRemoteControl = new RemoteControlClient(mPendingIntent); mRemoteControl.setOnGetPlaybackPositionListener(this); mRemoteControl.setPlaybackPositionUpdateListener(this); }
Example 3
Source File: TransportMediatorJellybeanMR2.java From adt-leanback-support with Apache License 2.0 | 5 votes |
void windowAttached() { mContext.registerReceiver(mMediaButtonReceiver, mReceiverFilter); mPendingIntent = PendingIntent.getBroadcast(mContext, 0, mIntent, PendingIntent.FLAG_CANCEL_CURRENT); mRemoteControl = new RemoteControlClient(mPendingIntent); mRemoteControl.setOnGetPlaybackPositionListener(this); mRemoteControl.setPlaybackPositionUpdateListener(this); }
Example 4
Source File: TransportMediatorJellybeanMR2.java From V.FlyoutTest with MIT License | 5 votes |
void windowAttached() { mContext.registerReceiver(mMediaButtonReceiver, mReceiverFilter); mPendingIntent = PendingIntent.getBroadcast(mContext, 0, mIntent, PendingIntent.FLAG_CANCEL_CURRENT); mRemoteControl = new RemoteControlClient(mPendingIntent); mRemoteControl.setOnGetPlaybackPositionListener(this); mRemoteControl.setPlaybackPositionUpdateListener(this); }
Example 5
Source File: TransportMediatorJellybeanMR2.java From guideshow with MIT License | 5 votes |
void windowAttached() { mContext.registerReceiver(mMediaButtonReceiver, mReceiverFilter); mPendingIntent = PendingIntent.getBroadcast(mContext, 0, mIntent, PendingIntent.FLAG_CANCEL_CURRENT); mRemoteControl = new RemoteControlClient(mPendingIntent); mRemoteControl.setOnGetPlaybackPositionListener(this); mRemoteControl.setPlaybackPositionUpdateListener(this); }