Geofence 클래스

정의

모니터링할 지오펜스(지리적 관심 영역)를 정의하는 기능이 포함되어 있습니다.

public ref class Geofence sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Geolocation.Geofencing.IGeofenceFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class Geofence final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Geolocation.Geofencing.IGeofenceFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class Geofence final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Geolocation.Geofencing.IGeofenceFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class Geofence
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Geolocation.Geofencing.IGeofenceFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class Geofence
function Geofence(id, geoshape, monitoredStates, singleUse, dwellTime, startTime, duration)
Public NotInheritable Class Geofence
상속
Object Platform::Object IInspectable Geofence
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)
앱 기능
location

생성자

Geofence(String, IGeoshape)

ID와 지오펜스의 모양이 지정된 새 Geofence 개체를 초기화합니다.

Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean)

ID, 지오펜스의 모양, 지오펜스를 모니터링할 상태 및 singleUse 플래그가 지정된 새 Geofence 개체를 초기화합니다.

Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan)

ID, 지오펜스의 모양, 지오펜스를 모니터링할 상태, singleUse 플래그 및 지오펜스에 대한 dwellTime이 지정된 경우 새 Geofence 개체를 초기화합니다.

Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan, DateTime, TimeSpan)

ID, 지오펜스의 모양, 지오펜스를 모니터링할 상태, singleUse 플래그, 지오펜스에 대한 dwellTime, 지오펜스 모니터링을 시작하는 시간 및 지오펜스의 기간이 지정된 경우 새 Geofence 개체를 초기화합니다.

속성

Duration

지오펜스가 모니터링되는 StartTime 이후부터 시작하는 시간 창을 가져옵니다.

DwellTime

알림을 트리거하려면 위치가 지오펜스 내부 또는 외부에 있어야 하는 최소 시간입니다.

Geoshape

지오펜스 영역의 모양입니다.

Id

지오펜스의 ID입니다.

MonitoredStates

지오펜스가 모니터링되는 상태를 나타냅니다.

SingleUse

지오펜스를 한 번 또는 여러 번 트리거해야 하는지 여부를 나타냅니다.

StartTime

지오펜스 모니터링을 시작하는 시간입니다.

적용 대상

추가 정보