We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

NotificationConfig

Expand

Class Info

public class NotificationConfig implements Parcelable

Configurations of the audio playback control in the notification bar.

Public Method Summary

Expand

Qualifier and Type

Method Name and Description

PendingIntent

getPrePendingIntent()

Obtains the intent of the previous song.

PendingIntent

getPlayPendingIntent()

Obtains the intent of the song that is being played.

PendingIntent

getNextPendingIntent()

Obtains the intent of the next song.

boolean

isQueueEmpty()

Whether the current playback queue is empty.

Bitmap

getBitmap()

Obtains the album cover of the song being played by the audio playback control in the notification bar.

String

getSingerName()

Obtains the singer name of the song that is being played.

String

getSongName()

Obtains the name of the song that is being played.

Public Methods

getPrePendingIntent

Expand

Method

public PendingIntent getPrePendingIntent()

Obtains the intent of the previous song.

Returns

Expand

Type

Description

PendingIntent

Intent of the previous song.

getPlayPendingIntent

Expand

Method

public PendingIntent getPlayPendingIntent()

Obtains the intent of the song that is being played.

Returns

Expand

Type

Description

PendingIntent

Intent of the song that is being played.

getNextPendingIntent

Expand

Method

public PendingIntent getNextPendingIntent()

Obtains the intent of the next song.

Returns

Expand

Type

Description

PendingIntent

Intent of the next song.

isQueueEmpty

Expand

Method

public boolean isQueueEmpty()

Whether the current playback queue is empty.

Returns

Expand

Type

Description

boolean

Whether the current playback queue is empty.

  • true: yes
  • false: no

getBitmap

Expand

Method

public Bitmap getBitmap()

Obtains the album cover of the song being played by the audio playback control in the notification bar.

Returns

Expand

Type

Description

Bitmap

Album cover of the song being played by the audio playback control in the notification bar.

getSingerName

Expand

Method

public String getSingerName()

Obtains the singer's name of the song that is being played.

Returns

Expand

Type

Description

String

Singer's name of the song that is being played.

getSongName

Expand

Method

public String getSongName()

Obtains the name of the song that is being played.

Returns

Expand

Type

Description

String

Name of the song that is being played.

Search
Enter a keyword.