Companion
object Companion
Content copied to clipboard
Functions
createNotificationChannelInfo
Link copied to clipboard
Notification Channel for 'It's your turn' and error notifications.
createNotificationChannels
Link copied to clipboard
Necessary for Multiplayer Turner Checker, starting with Android Oreo
createNotificationChannelService
Link copied to clipboard
Notification Channel for persistent service notification.
destroyOldChannels
Link copied to clipboard
Notification Channels can't be modified after creation. Therefore Unciv needs to create new ones and delete legacy ones.
notifyUserAboutTurn
Link copied to clipboard
showPersistentNotification
Link copied to clipboard
fun showPersistentNotification(appContext: Context, lastTimeChecked: String, checkPeriod: String)
Content copied to clipboard
The persistent notification is purely for informational reasons. It is not technically necessary for the Worker, since it is not a Service.
startTurnChecker
Link copied to clipboard
fun startTurnChecker(applicationContext: Context, currentGameInfo: GameInfo, settings: GameSettings)
Content copied to clipboard
Properties
CLIPBOARD_EXTRA
Link copied to clipboard
CONFIGURED_DELAY
Link copied to clipboard
FAIL_COUNT
Link copied to clipboard
HISTORIC_NOTIFICATION_CHANNELS
Link copied to clipboard
NOTIFICATION_CHANNEL_ID_INFO
Link copied to clipboard
NOTIFICATION_CHANNEL_ID_SERVICE
Link copied to clipboard
NOTIFICATION_ID_INFO
Link copied to clipboard
NOTIFICATION_ID_SERVICE
Link copied to clipboard
PERSISTENT_NOTIFICATION_ENABLED
Link copied to clipboard
Sources
androidJvm source
Link copied to clipboard