Documentation
¶
Overview ¶
Package provider provides Go bindings for android.location.provider.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type Properties
- func (m *Properties) DescribeContents() (int32, error)
- func (m *Properties) Equals(arg0 *jni.Object) (bool, error)
- func (m *Properties) GetAccuracy() (int32, error)
- func (m *Properties) GetPowerUsage() (int32, error)
- func (m *Properties) HasAltitudeSupport() (bool, error)
- func (m *Properties) HasBearingSupport() (bool, error)
- func (m *Properties) HasCellRequirement() (bool, error)
- func (m *Properties) HasMonetaryCost() (bool, error)
- func (m *Properties) HasNetworkRequirement() (bool, error)
- func (m *Properties) HasSatelliteRequirement() (bool, error)
- func (m *Properties) HasSpeedSupport() (bool, error)
- func (m *Properties) HashCode() (int32, error)
- func (m *Properties) ToString() (string, error)
- func (m *Properties) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type PropertiesBuilder
- func (m *PropertiesBuilder) Build() (*jni.Object, error)
- func (m *PropertiesBuilder) SetAccuracy(arg0 int32) (*jni.Object, error)
- func (m *PropertiesBuilder) SetHasAltitudeSupport(arg0 bool) (*jni.Object, error)
- func (m *PropertiesBuilder) SetHasBearingSupport(arg0 bool) (*jni.Object, error)
- func (m *PropertiesBuilder) SetHasCellRequirement(arg0 bool) (*jni.Object, error)
- func (m *PropertiesBuilder) SetHasMonetaryCost(arg0 bool) (*jni.Object, error)
- func (m *PropertiesBuilder) SetHasNetworkRequirement(arg0 bool) (*jni.Object, error)
- func (m *PropertiesBuilder) SetHasSatelliteRequirement(arg0 bool) (*jni.Object, error)
- func (m *PropertiesBuilder) SetHasSpeedSupport(arg0 bool) (*jni.Object, error)
- func (m *PropertiesBuilder) SetPowerUsage(arg0 int32) (*jni.Object, error)
Constants ¶
const ( AccuracyCoarse = consts.AccuracyCoarse AccuracyFine = consts.AccuracyFine Creator = consts.Creator PowerUsageHigh = consts.PowerUsageHigh PowerUsageLow = consts.PowerUsageLow PowerUsageMedium = consts.PowerUsageMedium )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Properties ¶
Properties wraps android.location.provider.ProviderProperties.
func (*Properties) DescribeContents ¶
func (m *Properties) DescribeContents() (int32, error)
DescribeContents calls android.location.provider.ProviderProperties.describeContents.
func (*Properties) Equals ¶
func (m *Properties) Equals(arg0 *jni.Object) (bool, error)
Equals calls android.location.provider.ProviderProperties.equals.
func (*Properties) GetAccuracy ¶
func (m *Properties) GetAccuracy() (int32, error)
GetAccuracy calls android.location.provider.ProviderProperties.getAccuracy.
func (*Properties) GetPowerUsage ¶
func (m *Properties) GetPowerUsage() (int32, error)
GetPowerUsage calls android.location.provider.ProviderProperties.getPowerUsage.
func (*Properties) HasAltitudeSupport ¶
func (m *Properties) HasAltitudeSupport() (bool, error)
HasAltitudeSupport calls android.location.provider.ProviderProperties.hasAltitudeSupport.
func (*Properties) HasBearingSupport ¶
func (m *Properties) HasBearingSupport() (bool, error)
HasBearingSupport calls android.location.provider.ProviderProperties.hasBearingSupport.
func (*Properties) HasCellRequirement ¶
func (m *Properties) HasCellRequirement() (bool, error)
HasCellRequirement calls android.location.provider.ProviderProperties.hasCellRequirement.
func (*Properties) HasMonetaryCost ¶
func (m *Properties) HasMonetaryCost() (bool, error)
HasMonetaryCost calls android.location.provider.ProviderProperties.hasMonetaryCost.
func (*Properties) HasNetworkRequirement ¶
func (m *Properties) HasNetworkRequirement() (bool, error)
HasNetworkRequirement calls android.location.provider.ProviderProperties.hasNetworkRequirement.
func (*Properties) HasSatelliteRequirement ¶
func (m *Properties) HasSatelliteRequirement() (bool, error)
HasSatelliteRequirement calls android.location.provider.ProviderProperties.hasSatelliteRequirement.
func (*Properties) HasSpeedSupport ¶
func (m *Properties) HasSpeedSupport() (bool, error)
HasSpeedSupport calls android.location.provider.ProviderProperties.hasSpeedSupport.
func (*Properties) HashCode ¶
func (m *Properties) HashCode() (int32, error)
HashCode calls android.location.provider.ProviderProperties.hashCode.
func (*Properties) ToString ¶
func (m *Properties) ToString() (string, error)
ToString calls android.location.provider.ProviderProperties.toString.
func (*Properties) WriteToParcel ¶
func (m *Properties) WriteToParcel(arg0 *jni.Object, arg1 int32) error
WriteToParcel calls android.location.provider.ProviderProperties.writeToParcel.
type PropertiesBuilder ¶
PropertiesBuilder wraps android.location.provider.ProviderProperties$Builder.
func (*PropertiesBuilder) Build ¶
func (m *PropertiesBuilder) Build() (*jni.Object, error)
Build calls android.location.provider.ProviderProperties$Builder.build.
func (*PropertiesBuilder) SetAccuracy ¶
func (m *PropertiesBuilder) SetAccuracy(arg0 int32) (*jni.Object, error)
SetAccuracy calls android.location.provider.ProviderProperties$Builder.setAccuracy.
func (*PropertiesBuilder) SetHasAltitudeSupport ¶
func (m *PropertiesBuilder) SetHasAltitudeSupport(arg0 bool) (*jni.Object, error)
SetHasAltitudeSupport calls android.location.provider.ProviderProperties$Builder.setHasAltitudeSupport.
func (*PropertiesBuilder) SetHasBearingSupport ¶
func (m *PropertiesBuilder) SetHasBearingSupport(arg0 bool) (*jni.Object, error)
SetHasBearingSupport calls android.location.provider.ProviderProperties$Builder.setHasBearingSupport.
func (*PropertiesBuilder) SetHasCellRequirement ¶
func (m *PropertiesBuilder) SetHasCellRequirement(arg0 bool) (*jni.Object, error)
SetHasCellRequirement calls android.location.provider.ProviderProperties$Builder.setHasCellRequirement.
func (*PropertiesBuilder) SetHasMonetaryCost ¶
func (m *PropertiesBuilder) SetHasMonetaryCost(arg0 bool) (*jni.Object, error)
SetHasMonetaryCost calls android.location.provider.ProviderProperties$Builder.setHasMonetaryCost.
func (*PropertiesBuilder) SetHasNetworkRequirement ¶
func (m *PropertiesBuilder) SetHasNetworkRequirement(arg0 bool) (*jni.Object, error)
SetHasNetworkRequirement calls android.location.provider.ProviderProperties$Builder.setHasNetworkRequirement.
func (*PropertiesBuilder) SetHasSatelliteRequirement ¶
func (m *PropertiesBuilder) SetHasSatelliteRequirement(arg0 bool) (*jni.Object, error)
SetHasSatelliteRequirement calls android.location.provider.ProviderProperties$Builder.setHasSatelliteRequirement.
func (*PropertiesBuilder) SetHasSpeedSupport ¶
func (m *PropertiesBuilder) SetHasSpeedSupport(arg0 bool) (*jni.Object, error)
SetHasSpeedSupport calls android.location.provider.ProviderProperties$Builder.setHasSpeedSupport.
func (*PropertiesBuilder) SetPowerUsage ¶
func (m *PropertiesBuilder) SetPowerUsage(arg0 int32) (*jni.Object, error)
SetPowerUsage calls android.location.provider.ProviderProperties$Builder.setPowerUsage.