Loading core/java/android/provider/DocumentsContract.java +5 −2 Original line number Diff line number Diff line Loading @@ -1432,12 +1432,15 @@ public final class DocumentsContract { * <p>Providers are required to show confirmation UI for all new permissions granted * for the linked document. * * <p>If list of recipients is known, then it should be passed in options as * <p>If list of recipients is known, then it can be passed in options as * {@link Intent#EXTRA_EMAIL} as either a string or list of strings. Note, that * this is just a hint for the provider, which can ignore the list. In either * case the provider is required to show a UI for letting the user confirm * any new permission grants. * * <p>Note, that the entire <code>options</code> bundle is send to the provider. * Make sure that you trust the provider before passing any sensitive information. * * <p>Since this API may show a UI, it cannot be called from background. * * <p>In order to obtain the Web Link use code like this: Loading @@ -1446,7 +1449,7 @@ public final class DocumentsContract { * IntentSender sender = DocumentsContract.createWebLinkIntent(<i>...</i>); * if (sender != null) { * startIntentSenderForResult( * DocumentsContract.createWebLinkIntent(<i>...</i>), * sender, * WEB_LINK_REQUEST_CODE, * null, 0, 0, 0, null); * } Loading Loading
core/java/android/provider/DocumentsContract.java +5 −2 Original line number Diff line number Diff line Loading @@ -1432,12 +1432,15 @@ public final class DocumentsContract { * <p>Providers are required to show confirmation UI for all new permissions granted * for the linked document. * * <p>If list of recipients is known, then it should be passed in options as * <p>If list of recipients is known, then it can be passed in options as * {@link Intent#EXTRA_EMAIL} as either a string or list of strings. Note, that * this is just a hint for the provider, which can ignore the list. In either * case the provider is required to show a UI for letting the user confirm * any new permission grants. * * <p>Note, that the entire <code>options</code> bundle is send to the provider. * Make sure that you trust the provider before passing any sensitive information. * * <p>Since this API may show a UI, it cannot be called from background. * * <p>In order to obtain the Web Link use code like this: Loading @@ -1446,7 +1449,7 @@ public final class DocumentsContract { * IntentSender sender = DocumentsContract.createWebLinkIntent(<i>...</i>); * if (sender != null) { * startIntentSenderForResult( * DocumentsContract.createWebLinkIntent(<i>...</i>), * sender, * WEB_LINK_REQUEST_CODE, * null, 0, 0, 0, null); * } Loading