What purpose does appUpdateInfo.isUpdateTypeAllowed (AppUpdateType.IMMEDIATE) serve in Android In-App Update API?

后端 未结 4 2041
情歌与酒
情歌与酒 2020-12-31 04:54

I have been following In-App update API in Android for quite some time now and I am unable to find any relevance of the following line:

appUpdateInfo.isUpdat         


        
4条回答
  •  暖寄归人
    2020-12-31 05:17

    These methods could return true if your UpdateAvailability is UPDATE_AIVALABLE. Please ensure this is true first:

    appUpdateInfo.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE

提交回复
热议问题