Udostępnij za pośrednictwem


Location.IsFromMockProvider Property

Definition

Returns true if this is a mock location.

public virtual bool IsFromMockProvider { [Android.Runtime.Register("isFromMockProvider", "()Z", "GetIsFromMockProviderHandler")] get; }
[<get: Android.Runtime.Register("isFromMockProvider", "()Z", "GetIsFromMockProviderHandler")>]
member this.IsFromMockProvider : bool

Property Value

true if this location came from a mock provider, false otherwise

Attributes

Remarks

Returns true if this is a mock location. If this location comes from the Android framework, this indicates that the location was provided by a test location provider, and thus may not be related to the actual location of the device.

This member is deprecated. Prefer #isMock() instead.

Java documentation for android.location.Location.isFromMockProvider().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to