Companion

object Companion

Functions

createNotificationChannelInfo
Link copied to clipboard
fun createNotificationChannelInfo(appContext: Context)

Notification Channel for 'It's your turn' and error notifications.

createNotificationChannels
Link copied to clipboard
fun createNotificationChannels(appContext: Context)

Necessary for Multiplayer Turner Checker, starting with Android Oreo

createNotificationChannelService
Link copied to clipboard
fun createNotificationChannelService(appContext: Context)

Notification Channel for persistent service notification.

destroyOldChannels
Link copied to clipboard
private fun destroyOldChannels(appContext: Context)

Notification Channels can't be modified after creation. Therefore Unciv needs to create new ones and delete legacy ones.

enqueue
Link copied to clipboard
fun enqueue(appContext: Context, delayInMinutes: Int, inputData: Data)
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
notifyUserAboutTurn
Link copied to clipboard
fun notifyUserAboutTurn(applicationContext: Context, gameName: String)
showPersistentNotification
Link copied to clipboard
fun showPersistentNotification(appContext: Context, lastTimeChecked: String, checkPeriod: String)

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)
toString
Link copied to clipboard
open fun toString(): String

Properties

CLIPBOARD_EXTRA
Link copied to clipboard
const val CLIPBOARD_EXTRA: String
CONFIGURED_DELAY
Link copied to clipboard
private const val CONFIGURED_DELAY: String
FAIL_COUNT
Link copied to clipboard
private const val FAIL_COUNT: String
GAME_ID
Link copied to clipboard
private const val GAME_ID: String
GAME_NAME
Link copied to clipboard
private const val GAME_NAME: String
HISTORIC_NOTIFICATION_CHANNELS
Link copied to clipboard
private val HISTORIC_NOTIFICATION_CHANNELS: Array<String>
NOTIFICATION_CHANNEL_ID_INFO
Link copied to clipboard
private const val NOTIFICATION_CHANNEL_ID_INFO: String
NOTIFICATION_CHANNEL_ID_SERVICE
Link copied to clipboard
private const val NOTIFICATION_CHANNEL_ID_SERVICE: String
NOTIFICATION_ID_INFO
Link copied to clipboard
const val NOTIFICATION_ID_INFO: Int = 2
NOTIFICATION_ID_SERVICE
Link copied to clipboard
const val NOTIFICATION_ID_SERVICE: Int = 1
PERSISTENT_NOTIFICATION_ENABLED
Link copied to clipboard
private const val PERSISTENT_NOTIFICATION_ENABLED: String
USER_ID
Link copied to clipboard
private const val USER_ID: String
WORK_TAG
Link copied to clipboard
const val WORK_TAG: String

Sources

androidJvm source
Link copied to clipboard