mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Add the privacy manifests for swift NC-SDK.
PiperOrigin-RevId: 623676227
This commit is contained in:
committed by
Copybara-Service
parent
6a2f0c6956
commit
78505e91f7
@@ -72,22 +72,10 @@ class MainActivity : ComponentActivity() {
|
||||
onShareTargetClicked = { data, intent ->
|
||||
viewModel.onShareTargetClicked(data, this@MainActivity, intent)
|
||||
})
|
||||
|
||||
Button(onClick = { startActivity(Intent(QUICK_SHARE_SETTINGS_INTENT)) }) {
|
||||
Text("Launch settings")
|
||||
}
|
||||
Button(onClick = { startActivity(Intent(QUICK_SHARE_RECEIVE_INTENT).setType("*/*")) }) {
|
||||
Text("Launch receiving UI")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val QUICK_SHARE_SETTINGS_INTENT = "com.google.android.gms.settings.SHARING"
|
||||
private const val QUICK_SHARE_RECEIVE_INTENT = "com.google.android.gms.RECEIVE_NEARBY"
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
Reference in New Issue
Block a user