io.qt.sensors.QSensorReading 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.*;
/**
* Holds the readings from the sensor
* Java wrapper for Qt class QSensorReading
*/
public class QSensorReading 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(QSensorReading.class);
/**
* See QSensorReading:: QSensorReading(QObject*, QSensorReadingPrivate*)
*/
protected QSensorReading(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QSensorReading instance, io.qt.core.QObject parent);
/**
* See QSensorReading:: setTimestamp(quint64)
*/
@QtUninvokable
public final void setTimestamp(long timestamp){
setTimestamp_native_quint64(QtJambi_LibraryUtilities.internal.nativeId(this), timestamp);
}
@QtUninvokable
private native void setTimestamp_native_quint64(long __this__nativeId, long timestamp);
/**
* See QSensorReading:: timestamp()const
*/
@QtPropertyReader(name="timestamp")
@QtUninvokable
public final long timestamp(){
return timestamp_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long timestamp_native_constfct(long __this__nativeId);
/**
* See QSensorReading:: value(int)const
*/
@QtUninvokable
public final java.lang.Object value(int index){
return value_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native java.lang.Object value_native_int_constfct(long __this__nativeId, int index);
/**
* See QSensorReading:: valueCount()const
*/
@QtUninvokable
public final int valueCount(){
return valueCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int valueCount_native_constfct(long __this__nativeId);
/**
* See QSensorReading:: copyValuesFrom(QSensorReading*)
*/
@QtUninvokable
protected void copyValuesFrom(io.qt.sensors.@Nullable QSensorReading other){
copyValuesFrom_native_QSensorReading_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void copyValuesFrom_native_QSensorReading_ptr(long __this__nativeId, long other);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSensorReading(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #timestamp()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final long getTimestamp() {
return timestamp();
}
}