public override fun onResume() {
super.onResume()
val updater = MSBVersionUpdater(this)
updater.endpoint = "[json url]"
updater.executeVersionCheck()
}
You can set Title and Message
public override fun onResume() {
super.onResume()
val updater = MSBVersionUpdater(this)
updater.endpoint = "[json url]"
updater.title = "[title]" // Notice
updater.message = "[message]" // Yout can update new version!
updater.executeVersionCheck()
}
You can set forceTitle and forceMessage
public override fun onResume() {
super.onResume()
val updater = MSBVersionUpdater(this)
updater.endpoint = "[json url]"
updater.forceTitle = "[forceTitle]" // App updates
updater.forceMessage = "[forceMessage]" // You can update latest app version. If you keep the old version , app might crash while you are using.
updater.executeVersionCheck()
}
You can set text of button positive and negative
public override fun onResume() {
super.onResume()
val updater = MSBVersionUpdater(this)
updater.endpoint = "[json url]"
updater.title = "[title]" // Notice
updater.message = "[message]" // Yout can update new version!
updater.positiveButtonText = "[positiveButtonText]" // OK!!
updater.negativeButtonText = "[negativeButtonText]" // CANCEL!!
updater.executeVersionCheck()
}