Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
Signed-off-by: MGasztold <michal.gasztold@ubudu.com>
  • Loading branch information
MGasztold committed Jul 7, 2020
1 parent a765c09 commit 1a60744
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1404,9 +1404,12 @@ private synchronized IMqttToken getMqttToken(Bundle data) {
}

/**
* If foregroundServiceNotification is not null at the time of
* MqttService start it will run in foreground mode. This method has no effect if
* Build.VERSION.SDK_INT < Build.VERSION_CODES.O
* Sets foregroundServiceNotification object. If it is not null at the time of
* MqttService start then the service will run in foreground mode which is
* mandatory to keep MQTT service operation when app is
* in the background on Android version >=8.
*
* This method has no effect if Build.VERSION.SDK_INT < Build.VERSION_CODES.O
*
* @param notification notification to be used when MqttService runs in foreground mode
*/
Expand All @@ -1415,6 +1418,8 @@ public void setForegroundServiceNotification(Notification notification) {
}

/**
* Sets ID of the foreground service notification.
* If this method is not used then the default ID 1 will be used.
*
* @param id The identifier for foreground service notification
*/
Expand Down

0 comments on commit 1a60744

Please sign in to comment.