From 54cddf5ca35377ce8fb199799738f024d5a6d44b Mon Sep 17 00:00:00 2001 From: Chris Waldon Date: Sun, 28 Feb 2021 17:29:43 -0500 Subject: [PATCH] app/permission: update doc to reference app.ViewEvent Signed-off-by: Chris Waldon --- app/permission/doc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/permission/doc.go b/app/permission/doc.go index ec8eb703..08ca9df7 100644 --- a/app/permission/doc.go +++ b/app/permission/doc.go @@ -40,9 +40,9 @@ Certain permissions on Android are marked with a protection level of "dangerous". This means that, in addition to including the relevant Gio permission packages, your app will need to prompt the user specifically to request access. To access the Android Activity -required for prompting, use the Do method on Window. Do exposes -the underlying Android View, on which the getContext method returns -the Activity. +required for prompting, use app.ViewEvent (only available on Android). +app.ViewEvent exposes the underlying Android View, on which the +getContext method returns the Activity. For more information on dangerous permissions, see: https://developer.android.com/guide/topics/permissions/overview#dangerous_permissions