Function MaaAdbControllerCreateV2

Source
pub unsafe extern "C" fn MaaAdbControllerCreateV2(
    adb_path: MaaStringView,
    address: MaaStringView,
    type_: MaaAdbControllerType,
    config: MaaStringView,
    agent_path: MaaStringView,
    callback: MaaControllerCallback,
    callback_arg: MaaCallbackTransparentArg,
) -> MaaControllerHandle
Available on crate feature internal only.
Expand description

@brief Create a ADB controller instance.

@param adb_path The path of ADB executable. @param address The ADB serial of the target device. @param type The type of the ADB controller. See #MaaAdbControllerTypeEnum. @param config The config of the ADB controller. @param agent_path The path of the agent executable. @param callback The callback function. See ::MaaAPICallback. @param callback_arg The callback arg that will be passed to the callback function. @return MaaControllerHandle The handle of the created controller instance.