SDL_RequestAndroidPermissionCallback

Type Alias SDL_RequestAndroidPermissionCallback 

Source
pub type SDL_RequestAndroidPermissionCallback = Option<unsafe extern "C" fn(userdata: *mut c_void, permission: *const c_char, granted: bool)>;
Available on Android only.
Expand description

Callback that presents a response from a SDL_RequestAndroidPermission call.

§Parameters

  • userdata: an app-controlled pointer that is passed to the callback.
  • permission: the Android-specific permission name that was requested.
  • granted: true if permission is granted, false if denied.

§Availability

This datatype is available since SDL 3.2.0.

§See also

Aliased Type§

pub enum SDL_RequestAndroidPermissionCallback {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *const u8, bool)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *const u8, bool))

Some value of type T.