I'm working on an existing, working project. (Using B4XPages, if that matter.)
In that work I'm moving some things into classes. A sub that request RuntimePermissions also made its way into a class, because it made sense. However, the result from the request end up in B4XPage_PermissionResult, and not in the actual class as I expected.
So I started wondering if it's even possible to request permissions from within classes, and get the results directly back into it? I couldn't find anything on the forum about it.
(I do realize that I could accept the result in B4XPage_PermissionResult and send it back into the waiting class, but I thought I'd ask the forum if there was a cleaner way of doing this first.)
In that work I'm moving some things into classes. A sub that request RuntimePermissions also made its way into a class, because it made sense. However, the result from the request end up in B4XPage_PermissionResult, and not in the actual class as I expected.
So I started wondering if it's even possible to request permissions from within classes, and get the results directly back into it? I couldn't find anything on the forum about it.
(I do realize that I could accept the result in B4XPage_PermissionResult and send it back into the waiting class, but I thought I'd ask the forum if there was a cleaner way of doing this first.)