Documentation
¶
Overview ¶
Package vibrator provides Go bindings for android.os.vibrator.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type EnvelopeEffectInfo
- func (m *EnvelopeEffectInfo) DescribeContents() (int32, error)
- func (m *EnvelopeEffectInfo) Equals(arg0 *jni.Object) (bool, error)
- func (m *EnvelopeEffectInfo) GetMaxControlPointDurationMillis() (int64, error)
- func (m *EnvelopeEffectInfo) GetMaxDurationMillis() (int64, error)
- func (m *EnvelopeEffectInfo) GetMaxSize() (int32, error)
- func (m *EnvelopeEffectInfo) GetMinControlPointDurationMillis() (int64, error)
- func (m *EnvelopeEffectInfo) HashCode() (int32, error)
- func (m *EnvelopeEffectInfo) ToString() (string, error)
- func (m *EnvelopeEffectInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type FrequencyProfile
- func (m *FrequencyProfile) GetFrequenciesOutputAcceleration() (*jni.Object, error)
- func (m *FrequencyProfile) GetFrequencyRange(arg0 float32) (*jni.Object, error)
- func (m *FrequencyProfile) GetMaxFrequencyHz() (float32, error)
- func (m *FrequencyProfile) GetMaxOutputAccelerationGs() (float32, error)
- func (m *FrequencyProfile) GetMinFrequencyHz() (float32, error)
- func (m *FrequencyProfile) GetOutputAccelerationGs(arg0 float32) (float32, error)
- func (m *FrequencyProfile) ToString() (string, error)
- type Vibrator
- func (m *Vibrator) AreAllEffectsSupported(arg0 *jni.Object) (int32, error)
- func (m *Vibrator) AreAllPrimitivesSupported(arg0 *jni.Object) (bool, error)
- func (m *Vibrator) AreEffectsSupported(arg0 *jni.Object) (*jni.Object, error)
- func (m *Vibrator) AreEnvelopeEffectsSupported() (bool, error)
- func (m *Vibrator) ArePrimitivesSupported(arg0 *jni.Object) (*jni.Object, error)
- func (m *Vibrator) Cancel() error
- func (m *Vibrator) Close()
- func (m *Vibrator) GetEnvelopeEffectInfo() (*jni.Object, error)
- func (m *Vibrator) GetFrequencyProfile() (*jni.Object, error)
- func (m *Vibrator) GetId() (int32, error)
- func (m *Vibrator) GetPrimitiveDurations(arg0 *jni.Object) (*jni.Object, error)
- func (m *Vibrator) GetQFactor() (float32, error)
- func (m *Vibrator) GetResonantFrequency() (float32, error)
- func (m *Vibrator) HasAmplitudeControl() (bool, error)
- func (m *Vibrator) HasVibrator() (bool, error)
- func (m *Vibrator) ToString() (string, error)
- func (m *Vibrator) Vibrate1(arg0 *jni.Object) error
- func (m *Vibrator) Vibrate1_3(arg0 int64) error
- func (m *Vibrator) Vibrate2_1(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *Vibrator) Vibrate2_2(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *Vibrator) Vibrate2_4(arg0 int64, arg1 *jni.Object) error
- func (m *Vibrator) Vibrate2_5(arg0 *jni.Object, arg1 int32) error
- func (m *Vibrator) Vibrate3_6(arg0 *jni.Object, arg1 int32, arg2 *jni.Object) error
Constants ¶
const ( Creator = consts.Creator VibrationEffectSupportNo = consts.VibrationEffectSupportNo VibrationEffectSupportUnknown = consts.VibrationEffectSupportUnknown VibrationEffectSupportYes = consts.VibrationEffectSupportYes )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnvelopeEffectInfo ¶ added in v0.0.7
EnvelopeEffectInfo wraps android.os.vibrator.VibratorEnvelopeEffectInfo.
func (*EnvelopeEffectInfo) DescribeContents ¶ added in v0.0.7
func (m *EnvelopeEffectInfo) DescribeContents() (int32, error)
DescribeContents calls android.os.vibrator.VibratorEnvelopeEffectInfo.describeContents.
func (*EnvelopeEffectInfo) Equals ¶ added in v0.0.7
func (m *EnvelopeEffectInfo) Equals(arg0 *jni.Object) (bool, error)
Equals calls android.os.vibrator.VibratorEnvelopeEffectInfo.equals.
func (*EnvelopeEffectInfo) GetMaxControlPointDurationMillis ¶ added in v0.0.7
func (m *EnvelopeEffectInfo) GetMaxControlPointDurationMillis() (int64, error)
GetMaxControlPointDurationMillis calls android.os.vibrator.VibratorEnvelopeEffectInfo.getMaxControlPointDurationMillis.
func (*EnvelopeEffectInfo) GetMaxDurationMillis ¶ added in v0.0.7
func (m *EnvelopeEffectInfo) GetMaxDurationMillis() (int64, error)
GetMaxDurationMillis calls android.os.vibrator.VibratorEnvelopeEffectInfo.getMaxDurationMillis.
func (*EnvelopeEffectInfo) GetMaxSize ¶ added in v0.0.7
func (m *EnvelopeEffectInfo) GetMaxSize() (int32, error)
GetMaxSize calls android.os.vibrator.VibratorEnvelopeEffectInfo.getMaxSize.
func (*EnvelopeEffectInfo) GetMinControlPointDurationMillis ¶ added in v0.0.7
func (m *EnvelopeEffectInfo) GetMinControlPointDurationMillis() (int64, error)
GetMinControlPointDurationMillis calls android.os.vibrator.VibratorEnvelopeEffectInfo.getMinControlPointDurationMillis.
func (*EnvelopeEffectInfo) HashCode ¶ added in v0.0.7
func (m *EnvelopeEffectInfo) HashCode() (int32, error)
HashCode calls android.os.vibrator.VibratorEnvelopeEffectInfo.hashCode.
func (*EnvelopeEffectInfo) ToString ¶ added in v0.0.7
func (m *EnvelopeEffectInfo) ToString() (string, error)
ToString calls android.os.vibrator.VibratorEnvelopeEffectInfo.toString.
func (*EnvelopeEffectInfo) WriteToParcel ¶ added in v0.0.7
func (m *EnvelopeEffectInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error
WriteToParcel calls android.os.vibrator.VibratorEnvelopeEffectInfo.writeToParcel.
type FrequencyProfile ¶ added in v0.0.7
FrequencyProfile wraps android.os.vibrator.VibratorFrequencyProfile.
func (*FrequencyProfile) GetFrequenciesOutputAcceleration ¶ added in v0.0.8
func (m *FrequencyProfile) GetFrequenciesOutputAcceleration() (*jni.Object, error)
GetFrequenciesOutputAcceleration calls android.os.vibrator.VibratorFrequencyProfile.getFrequenciesOutputAcceleration.
func (*FrequencyProfile) GetFrequencyRange ¶ added in v0.0.8
func (m *FrequencyProfile) GetFrequencyRange(arg0 float32) (*jni.Object, error)
GetFrequencyRange calls android.os.vibrator.VibratorFrequencyProfile.getFrequencyRange.
func (*FrequencyProfile) GetMaxFrequencyHz ¶ added in v0.0.7
func (m *FrequencyProfile) GetMaxFrequencyHz() (float32, error)
GetMaxFrequencyHz calls android.os.vibrator.VibratorFrequencyProfile.getMaxFrequencyHz.
func (*FrequencyProfile) GetMaxOutputAccelerationGs ¶ added in v0.0.7
func (m *FrequencyProfile) GetMaxOutputAccelerationGs() (float32, error)
GetMaxOutputAccelerationGs calls android.os.vibrator.VibratorFrequencyProfile.getMaxOutputAccelerationGs.
func (*FrequencyProfile) GetMinFrequencyHz ¶ added in v0.0.7
func (m *FrequencyProfile) GetMinFrequencyHz() (float32, error)
GetMinFrequencyHz calls android.os.vibrator.VibratorFrequencyProfile.getMinFrequencyHz.
func (*FrequencyProfile) GetOutputAccelerationGs ¶ added in v0.0.7
func (m *FrequencyProfile) GetOutputAccelerationGs(arg0 float32) (float32, error)
GetOutputAccelerationGs calls android.os.vibrator.VibratorFrequencyProfile.getOutputAccelerationGs.
func (*FrequencyProfile) ToString ¶ added in v0.0.8
func (m *FrequencyProfile) ToString() (string, error)
ToString calls android.os.vibrator.VibratorFrequencyProfile.toString.
type Vibrator ¶ added in v0.0.4
Vibrator wraps android.os.Vibrator.
func NewVibrator ¶ added in v0.0.4
NewVibrator obtains android.os.Vibrator from the Android system service manager.
func (*Vibrator) AreAllEffectsSupported ¶ added in v0.0.4
AreAllEffectsSupported calls android.os.Vibrator.areAllEffectsSupported.
func (*Vibrator) AreAllPrimitivesSupported ¶ added in v0.0.4
AreAllPrimitivesSupported calls android.os.Vibrator.areAllPrimitivesSupported.
func (*Vibrator) AreEffectsSupported ¶ added in v0.0.4
AreEffectsSupported calls android.os.Vibrator.areEffectsSupported.
func (*Vibrator) AreEnvelopeEffectsSupported ¶ added in v0.0.4
AreEnvelopeEffectsSupported calls android.os.Vibrator.areEnvelopeEffectsSupported.
func (*Vibrator) ArePrimitivesSupported ¶ added in v0.0.4
ArePrimitivesSupported calls android.os.Vibrator.arePrimitivesSupported.
func (*Vibrator) Close ¶ added in v0.0.4
func (m *Vibrator) Close()
Close releases the global reference to the underlying Java object. After Close, the Vibrator must not be used.
func (*Vibrator) GetEnvelopeEffectInfo ¶ added in v0.0.4
GetEnvelopeEffectInfo calls android.os.Vibrator.getEnvelopeEffectInfo.
func (*Vibrator) GetFrequencyProfile ¶ added in v0.0.4
GetFrequencyProfile calls android.os.Vibrator.getFrequencyProfile.
func (*Vibrator) GetPrimitiveDurations ¶ added in v0.0.4
GetPrimitiveDurations calls android.os.Vibrator.getPrimitiveDurations.
func (*Vibrator) GetQFactor ¶ added in v0.0.4
GetQFactor calls android.os.Vibrator.getQFactor.
func (*Vibrator) GetResonantFrequency ¶ added in v0.0.4
GetResonantFrequency calls android.os.Vibrator.getResonantFrequency.
func (*Vibrator) HasAmplitudeControl ¶ added in v0.0.4
HasAmplitudeControl calls android.os.Vibrator.hasAmplitudeControl.
func (*Vibrator) HasVibrator ¶ added in v0.0.4
HasVibrator calls android.os.Vibrator.hasVibrator.
func (*Vibrator) Vibrate1_3 ¶ added in v0.0.4
Vibrate1_3 calls android.os.Vibrator.vibrate.
func (*Vibrator) Vibrate2_1 ¶ added in v0.0.4
Vibrate2_1 calls android.os.Vibrator.vibrate.
func (*Vibrator) Vibrate2_2 ¶ added in v0.0.4
Vibrate2_2 calls android.os.Vibrator.vibrate.
func (*Vibrator) Vibrate2_4 ¶ added in v0.0.4
Vibrate2_4 calls android.os.Vibrator.vibrate.
func (*Vibrator) Vibrate2_5 ¶ added in v0.0.4
Vibrate2_5 calls android.os.Vibrator.vibrate.