io.qt.sensors.QAmbientLightSensor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi-sensors Show documentation
Show all versions of qtjambi-sensors Show documentation
Provides access to sensor hardware and motion gesture recognition.
package io.qt.sensors;
import io.qt.*;
/**
* Convenience wrapper around QSensor
* Java wrapper for Qt class QAmbientLightSensor
*/
public class QAmbientLightSensor extends io.qt.sensors.QSensor
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAmbientLightSensor.class);
/**
* See QAmbientLightSensor:: QAmbientLightSensor(QObject*)
*/
public QAmbientLightSensor(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QAmbientLightSensor instance, io.qt.core.QObject parent);
/**
*
*/
@QtUninvokable
public final io.qt.sensors.@Nullable QAmbientLightReading reading(){
return reading_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.sensors.QAmbientLightReading reading_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QAmbientLightSensor(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QAmbientLightSensor(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QAmbientLightSensor instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QAmbientLightSensor(io.qt.core.QObject)}
* with parent = null
.
*/
public QAmbientLightSensor() {
this((io.qt.core.QObject)null);
}
}