pub unsafe extern "C" fn OH_NativeDisplayManager_GetDisplayPosition(
displayId: u64,
x: *mut i32,
y: *mut i32,
) -> NativeDisplayManagerResultAvailable on crate feature
api-20 only.Expand description
Get the position of the device.
§Arguments
-
displayId- The display id. -
x- The x-coordinate of the screen’s top-left corner relative to the primary screen’s origin (in px). -
y- The y-coordinate of the screen’s top-left corner relative to the primary screen’s origin (in px).
§Returns
- { DISPLAY_MANAGER_OK } If the operation is successful { DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.
Available since API-level: 20