ArkUI_AccessibilityProviderCallbacksWithInstance

Struct ArkUI_AccessibilityProviderCallbacksWithInstance 

Source
#[repr(C)]
pub struct ArkUI_AccessibilityProviderCallbacksWithInstance { pub findAccessibilityNodeInfosById: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, mode: ArkUI_AccessibilitySearchMode, requestId: i32, elementList: *mut ArkUI_AccessibilityElementInfoList) -> i32>, pub findAccessibilityNodeInfosByText: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, text: *const c_char, requestId: i32, elementList: *mut ArkUI_AccessibilityElementInfoList) -> i32>, pub findFocusedAccessibilityNode: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, focusType: ArkUI_AccessibilityFocusType, requestId: i32, elementInfo: *mut ArkUI_AccessibilityElementInfo) -> i32>, pub findNextFocusAccessibilityNode: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, direction: ArkUI_AccessibilityFocusMoveDirection, requestId: i32, elementInfo: *mut ArkUI_AccessibilityElementInfo) -> i32>, pub executeAccessibilityAction: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, action: ArkUI_Accessibility_ActionType, actionArguments: *mut ArkUI_AccessibilityActionArguments, requestId: i32) -> i32>, pub clearFocusedFocusAccessibilityNode: Option<unsafe extern "C" fn(instanceId: *const c_char) -> i32>, pub getAccessibilityNodeCursorPosition: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, requestId: i32, index: *mut i32) -> i32>, }
Available on crate features api-13 and api-15 only.
Expand description

Registers callbacks with instance for the accessibility provider.

Available since API-level: 15

Fields§

§findAccessibilityNodeInfosById: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, mode: ArkUI_AccessibilitySearchMode, requestId: i32, elementList: *mut ArkUI_AccessibilityElementInfoList) -> i32>

Called to obtain element information based on a specified node.

§Arguments

  • instanceId - Indicates ID of third-party framework instance.

  • elementId - The unique id of the component ID.

  • mode - Indicates accessibility search mode.

  • requestId - Matched the request and response. transfer it by callback only.

  • elementList - The all obtained accessibility elements list information.

§Returns

  • Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL] if the operation is successful. Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER] if a parameter is incorrect.
§findAccessibilityNodeInfosByText: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, text: *const c_char, requestId: i32, elementList: *mut ArkUI_AccessibilityElementInfoList) -> i32>

Called to obtain element information based on a specified node and text content.

§Arguments

  • instanceId - Indicates ID of third-party framework instance.

  • elementId - The unique id of the component ID.

  • text - Filter for the child components to matched with the text.

  • requestId - Matched the request and response. transfer it by callback only.

  • elementList - The all obtained accessibility elements list information.

§Returns

  • Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL] if the operation is successful. Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER] if a parameter is incorrect.
§findFocusedAccessibilityNode: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, focusType: ArkUI_AccessibilityFocusType, requestId: i32, elementInfo: *mut ArkUI_AccessibilityElementInfo) -> i32>

Called to obtain focused element information based on a specified node.

§Arguments

  • instanceId - Indicates ID of third-party framework instance.

  • elementId - The unique id of the component ID.

  • focusType - Indicates focus type.

  • requestId - Matched the request and response. transfer it by callback only.

  • elementInfo - The all obtained accessibility elements list information.

§Returns

  • Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL] if the operation is successful. Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER] if a parameter is incorrect.
§findNextFocusAccessibilityNode: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, direction: ArkUI_AccessibilityFocusMoveDirection, requestId: i32, elementInfo: *mut ArkUI_AccessibilityElementInfo) -> i32>

Called to find the next focusable node based on the reference node.

§Arguments

  • instanceId - Indicates ID of third-party framework instance.

  • elementId - The unique id of the component ID.

  • direction - Indicates direction.

  • requestId - Matched the request and response. transfer it by callback only.

  • elementInfo - The all obtained accessibility elements list information.

§Returns

  • Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL] if the operation is successful. Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER] if a parameter is incorrect.
§executeAccessibilityAction: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, action: ArkUI_Accessibility_ActionType, actionArguments: *mut ArkUI_AccessibilityActionArguments, requestId: i32) -> i32>

Called to execute a specified action on a specified node.

§Arguments

  • instanceId - Indicates ID of third-party framework instance.

  • elementId - The unique id of the component ID.

  • action - Indicates action.

  • actionArguments - Indicates action arguments.

  • requestId - Matched the request and response. transfer it by callback only.

§Returns

  • Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL] if the operation is successful. Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER] if a parameter is incorrect.
§clearFocusedFocusAccessibilityNode: Option<unsafe extern "C" fn(instanceId: *const c_char) -> i32>

Called to clear the focus state of the current focused node.

§Arguments

  • instanceId - Indicates ID of third-party framework instance.

§Returns

  • Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL] if the operation is successful. Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_FAILED] if the operation is failed.
§getAccessibilityNodeCursorPosition: Option<unsafe extern "C" fn(instanceId: *const c_char, elementId: i64, requestId: i32, index: *mut i32) -> i32>

Called to query the current cursor position of the specified node.

§Arguments

  • instanceId - Indicates ID of third-party framework instance.

  • elementId - The unique id of the component ID.

  • requestId - Matched the request and response. transfer it by callback only.

  • index - Indicates index.

§Returns

  • Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_SUCCESSFUL] if the operation is successful. Returns [ARKUI_ACCESSIBILITY_NATIVE_RESULT_BAD_PARAMETER] if a parameter is incorrect.

Trait Implementations§

Source§

impl Clone for ArkUI_AccessibilityProviderCallbacksWithInstance

Source§

fn clone(&self) -> ArkUI_AccessibilityProviderCallbacksWithInstance

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ArkUI_AccessibilityProviderCallbacksWithInstance

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for ArkUI_AccessibilityProviderCallbacksWithInstance

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.