You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val startIntentSenderLauncher = startIntentSenderLauncher {
if (it.resultCode == Result_OK) {
// 处理结果
}
}
startIntentSenderLauncher.launch(intentSender)
但实际写startIntentSenderLauncher.launch(intentSender) 报错,
Not enough information to infer type variable T
因为这个launch方法是这样的:launch<T:Activity>(intentSender)
很让人疑惑,请指教
The text was updated successfully, but these errors were encountered:
文档中使用方法如下:
但实际写startIntentSenderLauncher.launch(intentSender) 报错,
Not enough information to infer type variable T
因为这个launch方法是这样的:launch<T:Activity>(intentSender)
很让人疑惑,请指教
The text was updated successfully, but these errors were encountered: