Documentation
¶
Index ¶
- func AndroidSdkVersion() int
- func AndroidSdkVersion_() int
- func BindService(serviceIntent QAndroidIntent_ITF, ...) bool
- func BindService_(serviceIntent *QAndroidIntent, serviceConnection *QAndroidServiceConnection, ...) bool
- func CheckPermission(permission string) int
- func CheckPermission_(permission string) int
- func DeleteQAndroidActivityResultReceiver(this *QAndroidActivityResultReceiver)
- func DeleteQAndroidBinder(this *QAndroidBinder)
- func DeleteQAndroidIntent(this *QAndroidIntent)
- func DeleteQAndroidJniEnvironment(this *QAndroidJniEnvironment)
- func DeleteQAndroidJniExceptionCleaner(this *QAndroidJniExceptionCleaner)
- func DeleteQAndroidJniObject(this *QAndroidJniObject)
- func DeleteQAndroidParcel(this *QAndroidParcel)
- func DeleteQAndroidService(this *QAndroidService)
- func DeleteQAndroidServiceConnection(this *QAndroidServiceConnection)
- func HideSplashScreen()
- func HideSplashScreen1(duration int)
- func HideSplashScreen_()
- func HideSplashScreen_2(duration int)
- func KeepScreenOn(on bool)
- func Operator_equal_equal(obj1 QAndroidJniObject_ITF, obj2 QAndroidJniObject_ITF) bool
- func Operator_not_equal(obj1 QAndroidJniObject_ITF, obj2 QAndroidJniObject_ITF) bool
- func QAndroidBinder_CallTypeItemName(val int) string
- func QAndroidJniEnvironment_JavaVM() unsafe.Pointer
- func QAndroidJniExceptionCleaner_OutputModeItemName(val int) string
- func QAndroidJniObject_IsClassAvailable(className string) bool
- func QAndroidJniObject__callStaticMethod(className, methodName, signature string, args ...interface{})
- func QAndroidJniObject__callStaticMethod2(className, methodName, signature string, args ...interface{}) byte
- func QAndroidJniObject__callStaticMethod3(className, methodName, signature string, args ...interface{}) int8
- func QAndroidJniObject__callStaticMethod4(className, methodName, signature string, args ...interface{}) int16
- func QAndroidJniObject__callStaticMethod5(className, methodName, signature string, args ...interface{}) uint16
- func QAndroidJniObject__callStaticMethod6(className, methodName, signature string, args ...interface{}) int
- func QAndroidJniObject__callStaticMethod7(className, methodName, signature string, args ...interface{}) int64
- func QAndroidJniObject__callStaticMethod8(className, methodName, signature string, args ...interface{}) float32
- func QAndroidJniObject__callStaticMethod9(className, methodName, signature string, args ...interface{}) float64
- func RequestPermissions(permissions qtcore.QStringList_ITF, callbackFunc unsafe.Pointer)
- func RunOnAndroidThread(runnable unsafe.Pointer)
- func RunOnAndroidThread2(symname string, a0 uint64, a1 uint64)
- func RunOnAndroidThreadSync(runnable unsafe.Pointer, timeoutMs int)
- func RunOnAndroidThreadSync_(runnable func(), timeoutMS int)
- func RunOnAndroidThread_(runnable func())
- func ShouldShowRequestPermissionRationale(permission string) bool
- func ShouldShowRequestPermissionRationale_handby(permission string) int
- func ShowToast(message string, duration uint64)
- func StartActivity(intent QAndroidJniObject_ITF, receiverRequestCode int, ...)
- func StartActivity_(intent *QAndroidJniObject, receiverRequestCode int, ...)
- func StartIntentSender(intentSender QAndroidJniObject_ITF, receiverRequestCode int, ...)
- func StartIntentSender_(intentSender *QAndroidJniObject, receiverRequestCode int, ...)
- type JNIEnv
- type QAndroidActivityResultReceiver
- func (this *QAndroidActivityResultReceiver) GetCthis() unsafe.Pointer
- func (this *QAndroidActivityResultReceiver) HandleActivityResult(receiverRequestCode int, resultCode int, data QAndroidJniObject_ITF)
- func (*QAndroidActivityResultReceiver) NewForInherit() *QAndroidActivityResultReceiver
- func (*QAndroidActivityResultReceiver) NewFromPointer(cthis unsafe.Pointer) *QAndroidActivityResultReceiver
- func (ptr *QAndroidActivityResultReceiver) QAndroidActivityResultReceiver_PTR() *QAndroidActivityResultReceiver
- func (this *QAndroidActivityResultReceiver) SetCthis(cthis unsafe.Pointer)
- type QAndroidActivityResultReceiver_ITF
- type QAndroidBinder
- func (this *QAndroidBinder) CallTypeItemName(val int) string
- func (this *QAndroidBinder) GetCthis() unsafe.Pointer
- func (this *QAndroidBinder) Handle() *QAndroidJniObject
- func (*QAndroidBinder) NewForInherit() *QAndroidBinder
- func (*QAndroidBinder) NewForInherit1(binder QAndroidJniObject_ITF) *QAndroidBinder
- func (*QAndroidBinder) NewFromPointer(cthis unsafe.Pointer) *QAndroidBinder
- func (this *QAndroidBinder) OnTransact(code int, data QAndroidParcel_ITF, reply QAndroidParcel_ITF, flags int) bool
- func (ptr *QAndroidBinder) QAndroidBinder_PTR() *QAndroidBinder
- func (this *QAndroidBinder) SetCthis(cthis unsafe.Pointer)
- func (this *QAndroidBinder) Transact(code int, data QAndroidParcel_ITF, reply QAndroidParcel_ITF, flags int) bool
- func (this *QAndroidBinder) Transactp(code int, data QAndroidParcel_ITF) bool
- func (this *QAndroidBinder) Transactp1(code int, data QAndroidParcel_ITF, reply QAndroidParcel_ITF) bool
- type QAndroidBinder_ITF
- type QAndroidBinder__CallType
- type QAndroidIntent
- func NewQAndroidIntent() *QAndroidIntent
- func NewQAndroidIntent1(intent QAndroidJniObject_ITF) *QAndroidIntent
- func NewQAndroidIntent2(action string) *QAndroidIntent
- func NewQAndroidIntent3(packageContext QAndroidJniObject_ITF, className string) *QAndroidIntent
- func NewQAndroidIntentFromPointer(cthis unsafe.Pointer) *QAndroidIntent
- func (this *QAndroidIntent) ExtraBytes(key string) *qtcore.QByteArray
- func (this *QAndroidIntent) ExtraVariant(key string) *qtcore.QVariant
- func (this *QAndroidIntent) GetCthis() unsafe.Pointer
- func (this *QAndroidIntent) Handle() *QAndroidJniObject
- func (*QAndroidIntent) NewForInherit() *QAndroidIntent
- func (*QAndroidIntent) NewForInherit1(intent QAndroidJniObject_ITF) *QAndroidIntent
- func (*QAndroidIntent) NewForInherit2(action string) *QAndroidIntent
- func (*QAndroidIntent) NewForInherit3(packageContext QAndroidJniObject_ITF, className string) *QAndroidIntent
- func (*QAndroidIntent) NewFromPointer(cthis unsafe.Pointer) *QAndroidIntent
- func (this *QAndroidIntent) PutExtra(key string, data qtcore.QByteArray_ITF)
- func (this *QAndroidIntent) PutExtra1(key string, value qtcore.QVariant_ITF)
- func (ptr *QAndroidIntent) QAndroidIntent_PTR() *QAndroidIntent
- func (this *QAndroidIntent) SetCthis(cthis unsafe.Pointer)
- type QAndroidIntent_ITF
- type QAndroidJniEnvironment
- func (this *QAndroidJniEnvironment) FindClass(className string) unsafe.Pointer
- func (this *QAndroidJniEnvironment) GetCthis() unsafe.Pointer
- func (this *QAndroidJniEnvironment) JNIEnv() *JNIEnv
- func (this *QAndroidJniEnvironment) JavaVM() unsafe.Pointer
- func (*QAndroidJniEnvironment) NewForInherit() *QAndroidJniEnvironment
- func (*QAndroidJniEnvironment) NewFromPointer(cthis unsafe.Pointer) *QAndroidJniEnvironment
- func (this *QAndroidJniEnvironment) Operator_minus_greater() unsafe.Pointer
- func (ptr *QAndroidJniEnvironment) QAndroidJniEnvironment_PTR() *QAndroidJniEnvironment
- func (this *QAndroidJniEnvironment) SetCthis(cthis unsafe.Pointer)
- type QAndroidJniEnvironment_ITF
- type QAndroidJniExceptionCleaner
- func (this *QAndroidJniExceptionCleaner) Clean()
- func (this *QAndroidJniExceptionCleaner) GetCthis() unsafe.Pointer
- func (*QAndroidJniExceptionCleaner) NewForInherit(outputMode int) *QAndroidJniExceptionCleaner
- func (*QAndroidJniExceptionCleaner) NewForInheritp() *QAndroidJniExceptionCleaner
- func (*QAndroidJniExceptionCleaner) NewFromPointer(cthis unsafe.Pointer) *QAndroidJniExceptionCleaner
- func (this *QAndroidJniExceptionCleaner) OutputModeItemName(val int) string
- func (ptr *QAndroidJniExceptionCleaner) QAndroidJniExceptionCleaner_PTR() *QAndroidJniExceptionCleaner
- func (this *QAndroidJniExceptionCleaner) SetCthis(cthis unsafe.Pointer)
- type QAndroidJniExceptionCleaner_ITF
- type QAndroidJniExceptionCleaner__OutputMode
- type QAndroidJniObject
- func AndroidActivity() *QAndroidJniObject
- func AndroidActivity_() *QAndroidJniObject
- func AndroidContext() *QAndroidJniObject
- func AndroidContext_() *QAndroidJniObject
- func AndroidService() *QAndroidJniObject
- func AndroidService_() *QAndroidJniObject
- func NewQAndroidJniObject() *QAndroidJniObject
- func NewQAndroidJniObject1(className string) *QAndroidJniObject
- func NewQAndroidJniObjectFromPointer(cthis unsafe.Pointer) *QAndroidJniObject
- func QAndroidJniObject_FromString(string string) *QAndroidJniObject
- func QAndroidJniObject_GetStaticObjectField(className string, fieldName string, sig string) *QAndroidJniObject
- func QAndroidJniObject__callStaticObjectMethod(className, methodName, signature string, args ...interface{}) *QAndroidJniObject
- func (this *QAndroidJniObject) CallMethod(methodName, signature string, args ...interface{})
- func (this *QAndroidJniObject) CallMethod2(methodName, signature string, args ...interface{}) byte
- func (this *QAndroidJniObject) CallMethod3(methodName, signature string, args ...interface{}) int8
- func (this *QAndroidJniObject) CallMethod4(methodName, signature string, args ...interface{}) uint16
- func (this *QAndroidJniObject) CallMethod5(methodName, signature string, args ...interface{}) int16
- func (this *QAndroidJniObject) CallMethod6(methodName, signature string, args ...interface{}) int
- func (this *QAndroidJniObject) CallMethod7(methodName, signature string, args ...interface{}) int64
- func (this *QAndroidJniObject) CallMethod8(methodName, signature string, args ...interface{}) float32
- func (this *QAndroidJniObject) CallMethod9(methodName, signature string, args ...interface{}) float64
- func (this *QAndroidJniObject) CallObjectMethod(methodName, signature string, args ...interface{}) *QAndroidJniObject
- func (this *QAndroidJniObject) FromString(string string) *QAndroidJniObject
- func (this *QAndroidJniObject) GetCthis() unsafe.Pointer
- func (this *QAndroidJniObject) GetObjectField(fieldName string, sig string) *QAndroidJniObject
- func (this *QAndroidJniObject) GetStaticObjectField(className string, fieldName string, sig string) *QAndroidJniObject
- func (this *QAndroidJniObject) IsClassAvailable(className string) bool
- func (this *QAndroidJniObject) IsValid() bool
- func (*QAndroidJniObject) NewForInherit() *QAndroidJniObject
- func (*QAndroidJniObject) NewForInherit1(className string) *QAndroidJniObject
- func (*QAndroidJniObject) NewFromPointer(cthis unsafe.Pointer) *QAndroidJniObject
- func (this *QAndroidJniObject) Object() unsafe.Pointer
- func (ptr *QAndroidJniObject) QAndroidJniObject_PTR() *QAndroidJniObject
- func (this *QAndroidJniObject) SetCthis(cthis unsafe.Pointer)
- func (this *QAndroidJniObject) ToString() string
- type QAndroidJniObject_ITF
- type QAndroidParcel
- func (this *QAndroidParcel) GetCthis() unsafe.Pointer
- func (this *QAndroidParcel) Handle() *QAndroidJniObject
- func (*QAndroidParcel) NewForInherit() *QAndroidParcel
- func (*QAndroidParcel) NewForInherit1(parcel QAndroidJniObject_ITF) *QAndroidParcel
- func (*QAndroidParcel) NewFromPointer(cthis unsafe.Pointer) *QAndroidParcel
- func (ptr *QAndroidParcel) QAndroidParcel_PTR() *QAndroidParcel
- func (this *QAndroidParcel) ReadBinder() *QAndroidBinder
- func (this *QAndroidParcel) ReadData() *qtcore.QByteArray
- func (this *QAndroidParcel) ReadFileDescriptor() int
- func (this *QAndroidParcel) ReadVariant() *qtcore.QVariant
- func (this *QAndroidParcel) SetCthis(cthis unsafe.Pointer)
- func (this *QAndroidParcel) WriteBinder(binder QAndroidBinder_ITF)
- func (this *QAndroidParcel) WriteData(data qtcore.QByteArray_ITF)
- func (this *QAndroidParcel) WriteFileDescriptor(fd int)
- func (this *QAndroidParcel) WriteVariant(value qtcore.QVariant_ITF)
- type QAndroidParcel_ITF
- type QAndroidService
- func (this *QAndroidService) GetCthis() unsafe.Pointer
- func (*QAndroidService) NewForInherit(argc int, argv []string, flags int) *QAndroidService
- func (*QAndroidService) NewForInheritp(argc int, argv []string) *QAndroidService
- func (*QAndroidService) NewFromPointer(cthis unsafe.Pointer) *QAndroidService
- func (this *QAndroidService) OnBind(intent QAndroidIntent_ITF) *QAndroidBinder
- func (ptr *QAndroidService) QAndroidService_PTR() *QAndroidService
- func (this *QAndroidService) SetCthis(cthis unsafe.Pointer)
- type QAndroidServiceConnection
- func (this *QAndroidServiceConnection) GetCthis() unsafe.Pointer
- func (this *QAndroidServiceConnection) Handle() *QAndroidJniObject
- func (*QAndroidServiceConnection) NewForInherit() *QAndroidServiceConnection
- func (*QAndroidServiceConnection) NewForInherit1(serviceConnection QAndroidJniObject_ITF) *QAndroidServiceConnection
- func (*QAndroidServiceConnection) NewFromPointer(cthis unsafe.Pointer) *QAndroidServiceConnection
- func (this *QAndroidServiceConnection) OnServiceConnected(name string, serviceBinder QAndroidBinder_ITF)
- func (this *QAndroidServiceConnection) OnServiceDisconnected(name string)
- func (ptr *QAndroidServiceConnection) QAndroidServiceConnection_PTR() *QAndroidServiceConnection
- func (this *QAndroidServiceConnection) SetCthis(cthis unsafe.Pointer)
- type QAndroidServiceConnection_ITF
- type QAndroidService_ITF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AndroidSdkVersion ¶
func AndroidSdkVersion() int
func AndroidSdkVersion_ ¶
func AndroidSdkVersion_() int
func BindService ¶ added in v5.10.106
func BindService(serviceIntent QAndroidIntent_ITF, serviceConnection QAndroidServiceConnection_ITF, flags int) bool
func BindService_ ¶
func BindService_(serviceIntent *QAndroidIntent, serviceConnection *QAndroidServiceConnection, flags int) bool
func CheckPermission ¶ added in v5.10.106
func CheckPermission_ ¶
func DeleteQAndroidActivityResultReceiver ¶
func DeleteQAndroidActivityResultReceiver(this *QAndroidActivityResultReceiver)
func DeleteQAndroidBinder ¶
func DeleteQAndroidBinder(this *QAndroidBinder)
func DeleteQAndroidIntent ¶
func DeleteQAndroidIntent(this *QAndroidIntent)
func DeleteQAndroidJniEnvironment ¶
func DeleteQAndroidJniEnvironment(this *QAndroidJniEnvironment)
func DeleteQAndroidJniExceptionCleaner ¶
func DeleteQAndroidJniExceptionCleaner(this *QAndroidJniExceptionCleaner)
func DeleteQAndroidJniObject ¶
func DeleteQAndroidJniObject(this *QAndroidJniObject)
func DeleteQAndroidParcel ¶
func DeleteQAndroidParcel(this *QAndroidParcel)
func DeleteQAndroidService ¶
func DeleteQAndroidService(this *QAndroidService)
func DeleteQAndroidServiceConnection ¶
func DeleteQAndroidServiceConnection(this *QAndroidServiceConnection)
func HideSplashScreen ¶
func HideSplashScreen()
func HideSplashScreen1 ¶ added in v5.10.106
func HideSplashScreen1(duration int)
func HideSplashScreen_ ¶
func HideSplashScreen_()
func HideSplashScreen_2 ¶
func HideSplashScreen_2(duration int)
func Operator_equal_equal ¶
func Operator_equal_equal(obj1 QAndroidJniObject_ITF, obj2 QAndroidJniObject_ITF) bool
func Operator_not_equal ¶
func Operator_not_equal(obj1 QAndroidJniObject_ITF, obj2 QAndroidJniObject_ITF) bool
func QAndroidJniObject__callStaticMethod ¶
func QAndroidJniObject__callStaticMethod(className, methodName, signature string, args ...interface{})
func RequestPermissions ¶ added in v5.10.106
func RequestPermissions(permissions qtcore.QStringList_ITF, callbackFunc unsafe.Pointer)
func RunOnAndroidThread ¶
func RunOnAndroidThread2 ¶
func RunOnAndroidThreadSync ¶
func RunOnAndroidThreadSync_ ¶
func RunOnAndroidThreadSync_(runnable func(), timeoutMS int)
TODO QtAndroid::Runnable
func RunOnAndroidThreadSync(runnable unsafe.Pointer, timeoutMS int) { var convArg0 = runnable var convArg1 = timeoutMS rv, err := qtrt.InvokeQtFunc6("QtAndroid_runOnAndroidThreadSync", qtrt.FFI_TYPE_POINTER, convArg0, convArg1) qtrt.ErrPrint(err, rv) }
func RunOnAndroidThread_ ¶
func RunOnAndroidThread_(runnable func())
TODO QtAndroid::Runnable
func RunOnAndroidThread(runnable unsafe.Pointer) { var convArg0 = runnable rv, err := qtrt.InvokeQtFunc6("QtAndroid_runOnAndroidThread", qtrt.FFI_TYPE_POINTER, convArg0) qtrt.ErrPrint(err, rv) }
Note: can not callback to go scope, or it's will crash or blocked
func ShouldShowRequestPermissionRationale ¶ added in v5.10.106
func StartActivity ¶
func StartActivity(intent QAndroidJniObject_ITF, receiverRequestCode int, resultReceiver QAndroidActivityResultReceiver_ITF)
func StartActivity_ ¶
func StartActivity_(intent *QAndroidJniObject, receiverRequestCode int, resultReceiver *QAndroidActivityResultReceiver)
func StartIntentSender ¶
func StartIntentSender(intentSender QAndroidJniObject_ITF, receiverRequestCode int, resultReceiver QAndroidActivityResultReceiver_ITF)
func StartIntentSender_ ¶
func StartIntentSender_(intentSender *QAndroidJniObject, receiverRequestCode int, resultReceiver *QAndroidActivityResultReceiver)
Types ¶
type JNIEnv ¶
type JNIEnv struct {
// contains filtered or unexported fields
}
///
func (*JNIEnv) ExceptionCheck ¶
func (*JNIEnv) ExceptionClear ¶
func (this *JNIEnv) ExceptionClear()
type QAndroidActivityResultReceiver ¶
func NewQAndroidActivityResultReceiver ¶
func NewQAndroidActivityResultReceiver() *QAndroidActivityResultReceiver
func NewQAndroidActivityResultReceiverFromPointer ¶
func NewQAndroidActivityResultReceiverFromPointer(cthis unsafe.Pointer) *QAndroidActivityResultReceiver
func (*QAndroidActivityResultReceiver) GetCthis ¶
func (this *QAndroidActivityResultReceiver) GetCthis() unsafe.Pointer
func (*QAndroidActivityResultReceiver) HandleActivityResult ¶
func (this *QAndroidActivityResultReceiver) HandleActivityResult(receiverRequestCode int, resultCode int, data QAndroidJniObject_ITF)
Reimplement this function to get activity results after starting an activity using either QtAndroid::startActivity() or QtAndroid::startIntentSender(). The receiverRequestCode is the request code unique to this receiver which was originally passed to the startActivity() or startIntentSender() functions. The resultCode is the result returned by the activity, and data is either null or a Java object of the class android.content.Intent. Both the last to arguments are identical to the arguments passed to onActivityResult().
func (*QAndroidActivityResultReceiver) NewForInherit ¶
func (*QAndroidActivityResultReceiver) NewForInherit() *QAndroidActivityResultReceiver
func (*QAndroidActivityResultReceiver) NewFromPointer ¶
func (*QAndroidActivityResultReceiver) NewFromPointer(cthis unsafe.Pointer) *QAndroidActivityResultReceiver
func (*QAndroidActivityResultReceiver) QAndroidActivityResultReceiver_PTR ¶
func (ptr *QAndroidActivityResultReceiver) QAndroidActivityResultReceiver_PTR() *QAndroidActivityResultReceiver
func (*QAndroidActivityResultReceiver) SetCthis ¶
func (this *QAndroidActivityResultReceiver) SetCthis(cthis unsafe.Pointer)
type QAndroidActivityResultReceiver_ITF ¶
type QAndroidActivityResultReceiver_ITF interface {
QAndroidActivityResultReceiver_PTR() *QAndroidActivityResultReceiver
}
type QAndroidBinder ¶
func NewQAndroidBinder ¶
func NewQAndroidBinder() *QAndroidBinder
func NewQAndroidBinder1 ¶
func NewQAndroidBinder1(binder QAndroidJniObject_ITF) *QAndroidBinder
func NewQAndroidBinderFromPointer ¶
func NewQAndroidBinderFromPointer(cthis unsafe.Pointer) *QAndroidBinder
func (*QAndroidBinder) CallTypeItemName ¶
func (this *QAndroidBinder) CallTypeItemName(val int) string
func (*QAndroidBinder) GetCthis ¶
func (this *QAndroidBinder) GetCthis() unsafe.Pointer
func (*QAndroidBinder) Handle ¶
func (this *QAndroidBinder) Handle() *QAndroidJniObject
The return value is useful to call other Java API which are not covered by this wrapper
func (*QAndroidBinder) NewForInherit ¶
func (*QAndroidBinder) NewForInherit() *QAndroidBinder
Creates a new object which can be used to perform IPC.
See also onTransact and transact.
func (*QAndroidBinder) NewForInherit1 ¶
func (*QAndroidBinder) NewForInherit1(binder QAndroidJniObject_ITF) *QAndroidBinder
Creates a new object which can be used to perform IPC.
See also onTransact and transact.
func (*QAndroidBinder) NewFromPointer ¶
func (*QAndroidBinder) NewFromPointer(cthis unsafe.Pointer) *QAndroidBinder
func (*QAndroidBinder) OnTransact ¶
func (this *QAndroidBinder) OnTransact(code int, data QAndroidParcel_ITF, reply QAndroidParcel_ITF, flags int) bool
Default implementation is a stub that returns false. The user should override this method to get the transact data from the caller.
The code is the action to perform. The data is the marshaled data sent by the caller.
The reply is the marshaled data to be sent to the caller. The flags are the additional operation flags.
Warning: This method is called from Binder's thread which is different from the thread that this object was created.
See also transact.
func (*QAndroidBinder) QAndroidBinder_PTR ¶
func (ptr *QAndroidBinder) QAndroidBinder_PTR() *QAndroidBinder
func (*QAndroidBinder) SetCthis ¶
func (this *QAndroidBinder) SetCthis(cthis unsafe.Pointer)
func (*QAndroidBinder) Transact ¶
func (this *QAndroidBinder) Transact(code int, data QAndroidParcel_ITF, reply QAndroidParcel_ITF, flags int) bool
Performs an IPC call
The code is the action to perform. Should be between FIRST_CALL_TRANSACTION and LAST_CALL_TRANSACTION.
The data is the marshaled data to send to the target. The reply (if specified) is the marshaled data to be received from the target. May be nullptr if you are not interested in the return value. The flags are the additional operation flags.
Returns true on success
func (*QAndroidBinder) Transactp ¶
func (this *QAndroidBinder) Transactp(code int, data QAndroidParcel_ITF) bool
Performs an IPC call
The code is the action to perform. Should be between FIRST_CALL_TRANSACTION and LAST_CALL_TRANSACTION.
The data is the marshaled data to send to the target. The reply (if specified) is the marshaled data to be received from the target. May be nullptr if you are not interested in the return value. The flags are the additional operation flags.
Returns true on success
func (*QAndroidBinder) Transactp1 ¶
func (this *QAndroidBinder) Transactp1(code int, data QAndroidParcel_ITF, reply QAndroidParcel_ITF) bool
Performs an IPC call
The code is the action to perform. Should be between FIRST_CALL_TRANSACTION and LAST_CALL_TRANSACTION.
The data is the marshaled data to send to the target. The reply (if specified) is the marshaled data to be received from the target. May be nullptr if you are not interested in the return value. The flags are the additional operation flags.
Returns true on success
type QAndroidBinder_ITF ¶
type QAndroidBinder_ITF interface {
QAndroidBinder_PTR() *QAndroidBinder
}
type QAndroidBinder__CallType ¶
type QAndroidBinder__CallType = int
This enum is used with QAndroidBinder::transact() to describe the mode in which the IPC call is performed.
const QAndroidBinder__Normal QAndroidBinder__CallType = 0
normal IPC, meaning that the caller waits the result from the callee
const QAndroidBinder__OneWay QAndroidBinder__CallType = 1
one-way IPC, meaning that the caller returns immediately, without waiting for a result from the callee
type QAndroidIntent ¶
func NewQAndroidIntent ¶
func NewQAndroidIntent() *QAndroidIntent
func NewQAndroidIntent1 ¶
func NewQAndroidIntent1(intent QAndroidJniObject_ITF) *QAndroidIntent
func NewQAndroidIntent2 ¶
func NewQAndroidIntent2(action string) *QAndroidIntent
func NewQAndroidIntent3 ¶
func NewQAndroidIntent3(packageContext QAndroidJniObject_ITF, className string) *QAndroidIntent
func NewQAndroidIntentFromPointer ¶
func NewQAndroidIntentFromPointer(cthis unsafe.Pointer) *QAndroidIntent
func (*QAndroidIntent) ExtraBytes ¶
func (this *QAndroidIntent) ExtraBytes(key string) *qtcore.QByteArray
Returns the extra key data from the Intent extras
func (*QAndroidIntent) ExtraVariant ¶
func (this *QAndroidIntent) ExtraVariant(key string) *qtcore.QVariant
Returns the extra key data from the Intent extras as a QVariant
func (*QAndroidIntent) GetCthis ¶
func (this *QAndroidIntent) GetCthis() unsafe.Pointer
func (*QAndroidIntent) Handle ¶
func (this *QAndroidIntent) Handle() *QAndroidJniObject
The return value is useful to call other Java API which are not covered by this wrapper
func (*QAndroidIntent) NewForInherit ¶
func (*QAndroidIntent) NewForInherit() *QAndroidIntent
Create a new intent
func (*QAndroidIntent) NewForInherit1 ¶
func (*QAndroidIntent) NewForInherit1(intent QAndroidJniObject_ITF) *QAndroidIntent
Create a new intent
func (*QAndroidIntent) NewForInherit2 ¶
func (*QAndroidIntent) NewForInherit2(action string) *QAndroidIntent
Create a new intent
func (*QAndroidIntent) NewForInherit3 ¶
func (*QAndroidIntent) NewForInherit3(packageContext QAndroidJniObject_ITF, className string) *QAndroidIntent
Create a new intent
func (*QAndroidIntent) NewFromPointer ¶
func (*QAndroidIntent) NewFromPointer(cthis unsafe.Pointer) *QAndroidIntent
func (*QAndroidIntent) PutExtra ¶
func (this *QAndroidIntent) PutExtra(key string, data qtcore.QByteArray_ITF)
Sets the key with the data in the Intent extras
func (*QAndroidIntent) PutExtra1 ¶
func (this *QAndroidIntent) PutExtra1(key string, value qtcore.QVariant_ITF)
Sets the key with the data in the Intent extras
func (*QAndroidIntent) QAndroidIntent_PTR ¶
func (ptr *QAndroidIntent) QAndroidIntent_PTR() *QAndroidIntent
func (*QAndroidIntent) SetCthis ¶
func (this *QAndroidIntent) SetCthis(cthis unsafe.Pointer)
type QAndroidIntent_ITF ¶
type QAndroidIntent_ITF interface {
QAndroidIntent_PTR() *QAndroidIntent
}
type QAndroidJniEnvironment ¶
func NewQAndroidJniEnvironment ¶
func NewQAndroidJniEnvironment() *QAndroidJniEnvironment
func NewQAndroidJniEnvironmentFromPointer ¶
func NewQAndroidJniEnvironmentFromPointer(cthis unsafe.Pointer) *QAndroidJniEnvironment
func (*QAndroidJniEnvironment) FindClass ¶ added in v5.12.106
func (this *QAndroidJniEnvironment) FindClass(className string) unsafe.Pointer
Searches for className using all available class loaders. Qt on Android uses a custom class loader to load all the .jar files and it must be used to find any classes that are created by that class loader because these classes are not visible in the default class loader.
Returns the class pointer or null if is not found.
This function was introduced in Qt 5.12.
func (*QAndroidJniEnvironment) GetCthis ¶
func (this *QAndroidJniEnvironment) GetCthis() unsafe.Pointer
func (*QAndroidJniEnvironment) JNIEnv ¶
func (this *QAndroidJniEnvironment) JNIEnv() *JNIEnv
func (*QAndroidJniEnvironment) JavaVM ¶
func (this *QAndroidJniEnvironment) JavaVM() unsafe.Pointer
Returns the Java VM interface.
func (*QAndroidJniEnvironment) NewForInherit ¶
func (*QAndroidJniEnvironment) NewForInherit() *QAndroidJniEnvironment
Constructs a new QAndroidJniEnvironment object and attach the current thread to the Java VM.
bool exceptionCheck() { /-* The QAndroidJniEnvironment attaches the current thread to the JavaVM on creation and detach when it goes out of scope. *-/ QAndroidJniEnvironment qjniEnv; return qjniEnv->ExceptionCheck(); }
func (*QAndroidJniEnvironment) NewFromPointer ¶
func (*QAndroidJniEnvironment) NewFromPointer(cthis unsafe.Pointer) *QAndroidJniEnvironment
func (*QAndroidJniEnvironment) Operator_minus_greater ¶
func (this *QAndroidJniEnvironment) Operator_minus_greater() unsafe.Pointer
func (*QAndroidJniEnvironment) QAndroidJniEnvironment_PTR ¶
func (ptr *QAndroidJniEnvironment) QAndroidJniEnvironment_PTR() *QAndroidJniEnvironment
func (*QAndroidJniEnvironment) SetCthis ¶
func (this *QAndroidJniEnvironment) SetCthis(cthis unsafe.Pointer)
type QAndroidJniEnvironment_ITF ¶
type QAndroidJniEnvironment_ITF interface {
QAndroidJniEnvironment_PTR() *QAndroidJniEnvironment
}
type QAndroidJniExceptionCleaner ¶
func NewQAndroidJniExceptionCleaner ¶
func NewQAndroidJniExceptionCleaner(outputMode int) *QAndroidJniExceptionCleaner
func NewQAndroidJniExceptionCleanerFromPointer ¶
func NewQAndroidJniExceptionCleanerFromPointer(cthis unsafe.Pointer) *QAndroidJniExceptionCleaner
func NewQAndroidJniExceptionCleanerp ¶
func NewQAndroidJniExceptionCleanerp() *QAndroidJniExceptionCleaner
func (*QAndroidJniExceptionCleaner) Clean ¶
func (this *QAndroidJniExceptionCleaner) Clean()
func (*QAndroidJniExceptionCleaner) GetCthis ¶
func (this *QAndroidJniExceptionCleaner) GetCthis() unsafe.Pointer
func (*QAndroidJniExceptionCleaner) NewForInherit ¶
func (*QAndroidJniExceptionCleaner) NewForInherit(outputMode int) *QAndroidJniExceptionCleaner
func (*QAndroidJniExceptionCleaner) NewForInheritp ¶
func (*QAndroidJniExceptionCleaner) NewForInheritp() *QAndroidJniExceptionCleaner
func (*QAndroidJniExceptionCleaner) NewFromPointer ¶
func (*QAndroidJniExceptionCleaner) NewFromPointer(cthis unsafe.Pointer) *QAndroidJniExceptionCleaner
func (*QAndroidJniExceptionCleaner) OutputModeItemName ¶
func (this *QAndroidJniExceptionCleaner) OutputModeItemName(val int) string
func (*QAndroidJniExceptionCleaner) QAndroidJniExceptionCleaner_PTR ¶
func (ptr *QAndroidJniExceptionCleaner) QAndroidJniExceptionCleaner_PTR() *QAndroidJniExceptionCleaner
func (*QAndroidJniExceptionCleaner) SetCthis ¶
func (this *QAndroidJniExceptionCleaner) SetCthis(cthis unsafe.Pointer)
type QAndroidJniExceptionCleaner_ITF ¶
type QAndroidJniExceptionCleaner_ITF interface {
QAndroidJniExceptionCleaner_PTR() *QAndroidJniExceptionCleaner
}
type QAndroidJniExceptionCleaner__OutputMode ¶
type QAndroidJniExceptionCleaner__OutputMode = int
const QAndroidJniExceptionCleaner__Silent QAndroidJniExceptionCleaner__OutputMode = 0
const QAndroidJniExceptionCleaner__Verbose QAndroidJniExceptionCleaner__OutputMode = 1
type QAndroidJniObject ¶
func AndroidActivity ¶
func AndroidActivity() *QAndroidJniObject
func AndroidActivity_ ¶
func AndroidActivity_() *QAndroidJniObject
func AndroidContext ¶
func AndroidContext() *QAndroidJniObject
func AndroidContext_ ¶
func AndroidContext_() *QAndroidJniObject
func AndroidService ¶
func AndroidService() *QAndroidJniObject
func AndroidService_ ¶
func AndroidService_() *QAndroidJniObject
func NewQAndroidJniObject ¶
func NewQAndroidJniObject() *QAndroidJniObject
func NewQAndroidJniObject1 ¶
func NewQAndroidJniObject1(className string) *QAndroidJniObject
func NewQAndroidJniObjectFromPointer ¶
func NewQAndroidJniObjectFromPointer(cthis unsafe.Pointer) *QAndroidJniObject
func QAndroidJniObject_FromString ¶
func QAndroidJniObject_FromString(string string) *QAndroidJniObject
func QAndroidJniObject_GetStaticObjectField ¶
func QAndroidJniObject_GetStaticObjectField(className string, fieldName string, sig string) *QAndroidJniObject
func QAndroidJniObject__callStaticObjectMethod ¶
func QAndroidJniObject__callStaticObjectMethod(className, methodName, signature string, args ...interface{}) *QAndroidJniObject
func (*QAndroidJniObject) CallMethod ¶
func (this *QAndroidJniObject) CallMethod(methodName, signature string, args ...interface{})
func (*QAndroidJniObject) CallMethod2 ¶
func (this *QAndroidJniObject) CallMethod2(methodName, signature string, args ...interface{}) byte
func (*QAndroidJniObject) CallMethod3 ¶
func (this *QAndroidJniObject) CallMethod3(methodName, signature string, args ...interface{}) int8
func (*QAndroidJniObject) CallMethod4 ¶
func (this *QAndroidJniObject) CallMethod4(methodName, signature string, args ...interface{}) uint16
func (*QAndroidJniObject) CallMethod5 ¶
func (this *QAndroidJniObject) CallMethod5(methodName, signature string, args ...interface{}) int16
func (*QAndroidJniObject) CallMethod6 ¶
func (this *QAndroidJniObject) CallMethod6(methodName, signature string, args ...interface{}) int
func (*QAndroidJniObject) CallMethod7 ¶
func (this *QAndroidJniObject) CallMethod7(methodName, signature string, args ...interface{}) int64
func (*QAndroidJniObject) CallMethod8 ¶
func (this *QAndroidJniObject) CallMethod8(methodName, signature string, args ...interface{}) float32
func (*QAndroidJniObject) CallMethod9 ¶
func (this *QAndroidJniObject) CallMethod9(methodName, signature string, args ...interface{}) float64
func (*QAndroidJniObject) CallObjectMethod ¶
func (this *QAndroidJniObject) CallObjectMethod(methodName, signature string, args ...interface{}) *QAndroidJniObject
func (*QAndroidJniObject) FromString ¶
func (this *QAndroidJniObject) FromString(string string) *QAndroidJniObject
Creates a Java string from the QString string and returns a QAndroidJniObject holding that string.
... QString myQString = "QString"; QAndroidJniObject myJavaString = QAndroidJniObject::fromString(myQString); ...
See also toString().
func (*QAndroidJniObject) GetCthis ¶
func (this *QAndroidJniObject) GetCthis() unsafe.Pointer
func (*QAndroidJniObject) GetObjectField ¶
func (this *QAndroidJniObject) GetObjectField(fieldName string, sig string) *QAndroidJniObject
Retrieves the object of field fieldName.
QAndroidJniObject field = jniObject.getObjectField<jstring>("FIELD_NAME");
func (*QAndroidJniObject) GetStaticObjectField ¶
func (this *QAndroidJniObject) GetStaticObjectField(className string, fieldName string, sig string) *QAndroidJniObject
Retrieves the object from the field fieldName on the class className.
QAndroidJniObject jobj = QAndroidJniObject::getStaticObjectField<jstring>("class/with/Fields", "FIELD_NAME");
func (*QAndroidJniObject) IsClassAvailable ¶
func (this *QAndroidJniObject) IsClassAvailable(className string) bool
Returns true if the Java class className is available.
... if (QAndroidJniObject::isClassAvailable("java/lang/String")) { ... } ...
func (*QAndroidJniObject) IsValid ¶
func (this *QAndroidJniObject) IsValid() bool
Returns true if this instance holds a valid Java object.
... QAndroidJniObject qjniObject; ==> isValid() == false QAndroidJniObject qjniObject(0) ==> isValid() == false QAndroidJniObject qjniObject("could/not/find/Class") ==> isValid() == false ...
func (*QAndroidJniObject) NewForInherit ¶
func (*QAndroidJniObject) NewForInherit() *QAndroidJniObject
Constructs an invalid QAndroidJniObject.
See also isValid().
func (*QAndroidJniObject) NewForInherit1 ¶
func (*QAndroidJniObject) NewForInherit1(className string) *QAndroidJniObject
Constructs an invalid QAndroidJniObject.
See also isValid().
func (*QAndroidJniObject) NewFromPointer ¶
func (*QAndroidJniObject) NewFromPointer(cthis unsafe.Pointer) *QAndroidJniObject
func (*QAndroidJniObject) Object ¶
func (this *QAndroidJniObject) Object() unsafe.Pointer
Returns the object held by the QAndroidJniObject as type T.
QAndroidJniObject string = QAndroidJniObject::fromString("Hello, JNI"); jstring jstring = string.object<jstring>();
Note: The returned object is still owned by the QAndroidJniObject. If you want to keep the object valid you should create a new QAndroidJniObject or make a new global reference to the object and free it yourself.
void functionScope() { QString helloString("Hello"); jstring myJString = 0; { QAndroidJniObject string = QAndroidJniObject::fromString(helloString); myJString = string.object<jstring>(); } // Ops! myJString is no longer valid. }
Note: Since Qt 5.3 this function can be used without a template type, if the returned type is a jobject.
jobject object = jniObject.object();
func (*QAndroidJniObject) QAndroidJniObject_PTR ¶
func (ptr *QAndroidJniObject) QAndroidJniObject_PTR() *QAndroidJniObject
func (*QAndroidJniObject) SetCthis ¶
func (this *QAndroidJniObject) SetCthis(cthis unsafe.Pointer)
func (*QAndroidJniObject) ToString ¶
func (this *QAndroidJniObject) ToString() string
Returns a QString with a string representation of the java object. Calling this function on a Java String object is a convenient way of getting the actual string data.
QAndroidJniObject string = ...; // "Hello Java" QString qstring = string.toString(); // "Hello Java"
See also fromString().
type QAndroidJniObject_ITF ¶
type QAndroidJniObject_ITF interface {
QAndroidJniObject_PTR() *QAndroidJniObject
}
type QAndroidParcel ¶
func NewQAndroidParcel ¶
func NewQAndroidParcel() *QAndroidParcel
func NewQAndroidParcel1 ¶
func NewQAndroidParcel1(parcel QAndroidJniObject_ITF) *QAndroidParcel
func NewQAndroidParcelFromPointer ¶
func NewQAndroidParcelFromPointer(cthis unsafe.Pointer) *QAndroidParcel
func (*QAndroidParcel) GetCthis ¶
func (this *QAndroidParcel) GetCthis() unsafe.Pointer
func (*QAndroidParcel) Handle ¶
func (this *QAndroidParcel) Handle() *QAndroidJniObject
The return value is useful to call other Java API which are not covered by this wrapper
func (*QAndroidParcel) NewForInherit ¶
func (*QAndroidParcel) NewForInherit() *QAndroidParcel
Creates a new object.
func (*QAndroidParcel) NewForInherit1 ¶
func (*QAndroidParcel) NewForInherit1(parcel QAndroidJniObject_ITF) *QAndroidParcel
Creates a new object.
func (*QAndroidParcel) NewFromPointer ¶
func (*QAndroidParcel) NewFromPointer(cthis unsafe.Pointer) *QAndroidParcel
func (*QAndroidParcel) QAndroidParcel_PTR ¶
func (ptr *QAndroidParcel) QAndroidParcel_PTR() *QAndroidParcel
func (*QAndroidParcel) ReadBinder ¶
func (this *QAndroidParcel) ReadBinder() *QAndroidBinder
Returns the binder as a QAndroidBinder
func (*QAndroidParcel) ReadData ¶
func (this *QAndroidParcel) ReadData() *qtcore.QByteArray
Returns the data as a QByteArray
func (*QAndroidParcel) ReadFileDescriptor ¶
func (this *QAndroidParcel) ReadFileDescriptor() int
Returns the file descriptor
func (*QAndroidParcel) ReadVariant ¶
func (this *QAndroidParcel) ReadVariant() *qtcore.QVariant
Returns the data as a QVariant
func (*QAndroidParcel) SetCthis ¶
func (this *QAndroidParcel) SetCthis(cthis unsafe.Pointer)
func (*QAndroidParcel) WriteBinder ¶
func (this *QAndroidParcel) WriteBinder(binder QAndroidBinder_ITF)
Writes a binder object. This is useful for a client to send to a server a binder which can be used by the server callback the client.
func (*QAndroidParcel) WriteData ¶
func (this *QAndroidParcel) WriteData(data qtcore.QByteArray_ITF)
Writes the provided data as a byte array
func (*QAndroidParcel) WriteFileDescriptor ¶
func (this *QAndroidParcel) WriteFileDescriptor(fd int)
Writes the provided fd.
func (*QAndroidParcel) WriteVariant ¶
func (this *QAndroidParcel) WriteVariant(value qtcore.QVariant_ITF)
Writes the provided value. The value is converted into a QByteArray before is written.
type QAndroidParcel_ITF ¶
type QAndroidParcel_ITF interface {
QAndroidParcel_PTR() *QAndroidParcel
}
type QAndroidService ¶
type QAndroidService struct {
*qtcore.QCoreApplication
}
func NewQAndroidService ¶
func NewQAndroidService(argc int, argv []string, flags int) *QAndroidService
func NewQAndroidServiceFromPointer ¶
func NewQAndroidServiceFromPointer(cthis unsafe.Pointer) *QAndroidService
func NewQAndroidServicep ¶
func NewQAndroidServicep(argc int, argv []string) *QAndroidService
func (*QAndroidService) GetCthis ¶
func (this *QAndroidService) GetCthis() unsafe.Pointer
func (*QAndroidService) NewForInherit ¶
func (*QAndroidService) NewForInherit(argc int, argv []string, flags int) *QAndroidService
Creates a new Android service, passing argc and argv as parameters.
See also QCoreApplication.
func (*QAndroidService) NewForInheritp ¶
func (*QAndroidService) NewForInheritp(argc int, argv []string) *QAndroidService
Creates a new Android service, passing argc and argv as parameters.
See also QCoreApplication.
func (*QAndroidService) NewFromPointer ¶
func (*QAndroidService) NewFromPointer(cthis unsafe.Pointer) *QAndroidService
func (*QAndroidService) OnBind ¶
func (this *QAndroidService) OnBind(intent QAndroidIntent_ITF) *QAndroidBinder
The user must override this method and to return a binder.
The intent parameter contains all the caller information.
The returned binder is used by the caller to perform IPC calls.
Warning: This method is called from Binder's thread which is different from the thread that this object was created.
See also QAndroidBinder::onTransact and QAndroidBinder::transact.
func (*QAndroidService) QAndroidService_PTR ¶
func (ptr *QAndroidService) QAndroidService_PTR() *QAndroidService
func (*QAndroidService) SetCthis ¶
func (this *QAndroidService) SetCthis(cthis unsafe.Pointer)
type QAndroidServiceConnection ¶
func NewQAndroidServiceConnection ¶
func NewQAndroidServiceConnection() *QAndroidServiceConnection
func NewQAndroidServiceConnection1 ¶
func NewQAndroidServiceConnection1(serviceConnection QAndroidJniObject_ITF) *QAndroidServiceConnection
func NewQAndroidServiceConnectionFromPointer ¶
func NewQAndroidServiceConnectionFromPointer(cthis unsafe.Pointer) *QAndroidServiceConnection
func (*QAndroidServiceConnection) GetCthis ¶
func (this *QAndroidServiceConnection) GetCthis() unsafe.Pointer
func (*QAndroidServiceConnection) Handle ¶
func (this *QAndroidServiceConnection) Handle() *QAndroidJniObject
returns the underline QAndroidJniObject
func (*QAndroidServiceConnection) NewForInherit ¶
func (*QAndroidServiceConnection) NewForInherit() *QAndroidServiceConnection
Creates a new object
func (*QAndroidServiceConnection) NewForInherit1 ¶
func (*QAndroidServiceConnection) NewForInherit1(serviceConnection QAndroidJniObject_ITF) *QAndroidServiceConnection
Creates a new object
func (*QAndroidServiceConnection) NewFromPointer ¶
func (*QAndroidServiceConnection) NewFromPointer(cthis unsafe.Pointer) *QAndroidServiceConnection
func (*QAndroidServiceConnection) OnServiceConnected ¶
func (this *QAndroidServiceConnection) OnServiceConnected(name string, serviceBinder QAndroidBinder_ITF)
This notification is called when the client managed to connect to the service. The name contains the server name, the serviceBinder is the binder that the client uses to perform IPC operations.
Warning: This method is called from Binder's thread which is different from the thread that this object was created.
returns the underline QAndroidJniObject
func (*QAndroidServiceConnection) OnServiceDisconnected ¶
func (this *QAndroidServiceConnection) OnServiceDisconnected(name string)
Called when a connection to the Service has been lost. The name parameter specifies which connectioen was lost.
Warning: This method is called from Binder's thread which is different from the thread that this object was created.
returns the underline QAndroidJniObject
func (*QAndroidServiceConnection) QAndroidServiceConnection_PTR ¶
func (ptr *QAndroidServiceConnection) QAndroidServiceConnection_PTR() *QAndroidServiceConnection
func (*QAndroidServiceConnection) SetCthis ¶
func (this *QAndroidServiceConnection) SetCthis(cthis unsafe.Pointer)
type QAndroidServiceConnection_ITF ¶
type QAndroidServiceConnection_ITF interface {
QAndroidServiceConnection_PTR() *QAndroidServiceConnection
}
type QAndroidService_ITF ¶
type QAndroidService_ITF interface { qtcore.QCoreApplication_ITF QAndroidService_PTR() *QAndroidService }