QAndroidService Class
안드로이드 서비스 클래스의 가장 중요한 메서드를 래핑합니다. 더 보기...
Header: | #include <QtCore/private/qandroidextras_p.h> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::CorePrivate) |
qmake: | QT += core-private |
이후: | Qt 6.2 |
상속합니다: | QCoreApplication |
상태: | 예비 |
이 클래스는 개발 중이며 변경될 수 있습니다.
공용 함수
QAndroidService(int &argc, char **argv) | |
QAndroidService(int &argc, char **argv, const std::function<QAndroidBinder *(const QAndroidIntent &)> &binder) | |
virtual QAndroidBinder * | onBind(const QAndroidIntent &intent) |
상세 설명
QAndroidService는 가장 중요한 안드로이드 서비스 메서드를 래핑하는 편의 클래스입니다.
멤버 함수 문서
QAndroidService::QAndroidService(int &argc, char **argv)
매개 변수로 argc 및 argv 을 전달하여 새 Android 서비스를 만듭니다.
QCoreApplication도 참조하세요 .
QAndroidService::QAndroidService(int &argc, char **argv, const std::function<QAndroidBinder *(const QAndroidIntent &)> &binder)
argc 및 argv 을 매개변수로 전달하여 새 Android 서비스를 생성합니다.
binder 는 필요한 경우 binder 를 만드는 데 사용됩니다.
QCoreApplication 를참조하세요 .
[virtual]
QAndroidBinder *QAndroidService::onBind(const QAndroidIntent &intent)
사용자는 이 메서드를 재정의하고 바인더를 반환해야 합니다.
intent 매개변수에는 모든 호출자 정보가 포함됩니다.
반환된 바인더는 호출자가 IPC 호출을 수행하는 데 사용됩니다.
경고: 이 메서드는 이 객체가 생성된 스레드와 다른 바인더의 스레드에서 호출됩니다.
QAndroidBinder::onTransact 및 QAndroidBinder::transact 을참조하세요 .
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.