io.qt.purchasing.QInAppStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi-purchasing Show documentation
Show all versions of qtjambi-purchasing Show documentation
Enables in-app purchase of products in Qt applications.
package io.qt.purchasing;
import io.qt.*;
/**
* Main entry point for managing in-app purchases
* Java wrapper for Qt class QInAppStore
*/
public class QInAppStore extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QInAppStore.class);
/**
* See QInAppStore::productRegistered(QInAppProduct*)
*/
public final @NonNull Signal1 productRegistered = new Signal1<>();
/**
* See QInAppStore::productUnknown(QInAppProduct::ProductType,QString)
*/
public final @NonNull Signal2 productUnknown = new Signal2<>();
/**
* See QInAppStore::transactionReady(QInAppTransaction*)
*/
public final @NonNull Signal1 transactionReady = new Signal1<>();
/**
* Overloaded constructor for {@link #QInAppStore(io.qt.core.QObject)}
* with parent = null
.
*/
public QInAppStore() {
this((io.qt.core.QObject)null);
}
/**
* See QInAppStore::QInAppStore(QObject*)
*/
public QInAppStore(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QInAppStore instance, io.qt.core.QObject parent);
/**
* See QInAppStore::registerProduct(QInAppProduct::ProductType,QString)
*/
public final void registerProduct(io.qt.purchasing.QInAppProduct.@NonNull ProductType productType, java.lang.@NonNull String identifier){
registerProduct_native_QInAppProduct_ProductType_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), productType.value(), identifier);
}
private native void registerProduct_native_QInAppProduct_ProductType_cref_QString(long __this__nativeId, int productType, java.lang.String identifier);
/**
* See QInAppStore::registeredProduct(QString)const
*/
public final io.qt.purchasing.@Nullable QInAppProduct registeredProduct(java.lang.@NonNull String identifier){
return registeredProduct_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), identifier);
}
private native io.qt.purchasing.QInAppProduct registeredProduct_native_cref_QString_constfct(long __this__nativeId, java.lang.String identifier);
/**
* See QInAppStore::restorePurchases()
*/
public final void restorePurchases(){
restorePurchases_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void restorePurchases_native(long __this__nativeId);
/**
* See QInAppStore::setPlatformProperty(QString,QString)
*/
public final void setPlatformProperty(java.lang.@NonNull String propertyName, java.lang.@NonNull String value){
setPlatformProperty_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), propertyName, value);
}
private native void setPlatformProperty_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String propertyName, java.lang.String value);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QInAppStore(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* @hidden
* It is not allowed to call the declarative constructor from inside Java.
*/
@NativeAccess
protected QInAppStore(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QInAppStore instance, QDeclarativeConstructor constructor);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy