Geofence 생성자

정의

오버로드

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 개체를 초기화합니다.

Geofence(String, IGeoshape)

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

public:
 Geofence(Platform::String ^ id, IGeoshape ^ geoshape);
 Geofence(winrt::hstring const& id, IGeoshape const& geoshape);
public Geofence(string id, IGeoshape geoshape);
function Geofence(id, geoshape)
Public Sub New (id As String, geoshape As IGeoshape)

매개 변수

id
String

Platform::String

winrt::hstring

지오펜스의 ID입니다.

geoshape
IGeoshape

모니터링할 지오펜스를 정의하는 영역입니다.

Windows 요구 사항

앱 기능
location

설명

이 생성자를 사용하는 경우 MonitoredStates기본적으로 Enter 및 Exited 상태 모두에 대해 모니터링되고, SingleUse는 기본값이 false이고, DwellTime은 기본값이 10초이고, StartTime은 기본적으로 0으로 설정되며, Duration은 기본적으로 0으로 설정됩니다.

ID 값은 null이 아니고 64자 미만이어야 합니다.

geoshape 매개 변수는 플랫폼과 일치하는 SpatialReferenceId가 있는 null이 아닌 Geocircle이어야 합니다. 그렇지 않으면 예외가 throw됩니다.

추가 정보

적용 대상

Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean)

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

public:
 Geofence(Platform::String ^ id, IGeoshape ^ geoshape, MonitoredGeofenceStates monitoredStates, bool singleUse);
 Geofence(winrt::hstring const& id, IGeoshape const& geoshape, MonitoredGeofenceStates const& monitoredStates, bool const& singleUse);
public Geofence(string id, IGeoshape geoshape, MonitoredGeofenceStates monitoredStates, bool singleUse);
function Geofence(id, geoshape, monitoredStates, singleUse)
Public Sub New (id As String, geoshape As IGeoshape, monitoredStates As MonitoredGeofenceStates, singleUse As Boolean)

매개 변수

id
String

Platform::String

winrt::hstring

지오펜스의 ID입니다.

geoshape
IGeoshape

모니터링할 지오펜스를 정의하는 영역입니다.

monitoredStates
MonitoredGeofenceStates

지오펜스를 모니터링할 상태입니다.

singleUse
Boolean

bool

True이면 한 가지 용도로만 지오펜스를 모니터링해야 합니다. False이면 지오펜스가 여러 용도로 모니터링되어야 함을 나타냅니다.

Windows 요구 사항

앱 기능
location

추가 정보

적용 대상

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

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

public:
 Geofence(Platform::String ^ id, IGeoshape ^ geoshape, MonitoredGeofenceStates monitoredStates, bool singleUse, TimeSpan dwellTime);
 Geofence(winrt::hstring const& id, IGeoshape const& geoshape, MonitoredGeofenceStates const& monitoredStates, bool const& singleUse, TimeSpan const& dwellTime);
public Geofence(string id, IGeoshape geoshape, MonitoredGeofenceStates monitoredStates, bool singleUse, System.TimeSpan dwellTime);
function Geofence(id, geoshape, monitoredStates, singleUse, dwellTime)
Public Sub New (id As String, geoshape As IGeoshape, monitoredStates As MonitoredGeofenceStates, singleUse As Boolean, dwellTime As TimeSpan)

매개 변수

id
String

Platform::String

winrt::hstring

지오펜스의 ID입니다.

geoshape
IGeoshape

모니터링할 지오펜스를 정의하는 영역입니다.

monitoredStates
MonitoredGeofenceStates

지오펜스를 모니터링할 상태입니다.

singleUse
Boolean

bool

True이면 한 가지 용도로만 지오펜스를 모니터링해야 합니다. False이면 지오펜스가 여러 용도로 모니터링되어야 함을 나타냅니다.

dwellTime
TimeSpan TimeSpan

알림이 트리거되려면 위치가 지오펜스 내/외부에 있어야 하는 시간입니다. 이 개체는 양수 값을 나타내야 합니다.

Windows 요구 사항

앱 기능
location

추가 정보

적용 대상

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

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

public:
 Geofence(Platform::String ^ id, IGeoshape ^ geoshape, MonitoredGeofenceStates monitoredStates, bool singleUse, TimeSpan dwellTime, DateTime startTime, TimeSpan duration);
 Geofence(winrt::hstring const& id, IGeoshape const& geoshape, MonitoredGeofenceStates const& monitoredStates, bool const& singleUse, TimeSpan const& dwellTime, DateTime const& startTime, TimeSpan const& duration);
public Geofence(string id, IGeoshape geoshape, MonitoredGeofenceStates monitoredStates, bool singleUse, System.TimeSpan dwellTime, System.DateTimeOffset startTime, System.TimeSpan duration);
function Geofence(id, geoshape, monitoredStates, singleUse, dwellTime, startTime, duration)
Public Sub New (id As String, geoshape As IGeoshape, monitoredStates As MonitoredGeofenceStates, singleUse As Boolean, dwellTime As TimeSpan, startTime As DateTimeOffset, duration As TimeSpan)

매개 변수

id
String

Platform::String

winrt::hstring

지오펜스의 ID입니다.

geoshape
IGeoshape

모니터링할 지오펜스를 정의하는 영역입니다.

monitoredStates
MonitoredGeofenceStates

지오펜스를 모니터링할 상태입니다.

singleUse
Boolean

bool

True이면 한 가지 용도로만 지오펜스를 모니터링해야 합니다. False이면 지오펜스가 여러 용도로 모니터링되어야 함을 나타냅니다.

dwellTime
TimeSpan TimeSpan

알림이 트리거되려면 위치가 지오펜스 내/외부에 있어야 하는 시간입니다. 이 개체는 양수 값을 나타내야 합니다.

startTime
DateTime DateTimeOffset

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

duration
TimeSpan TimeSpan

지오펜스를 모니터링하는 기간입니다. 기간은 startTime에서 시작됩니다. 이 개체는 양수 값을 나타내야 합니다.

Windows 요구 사항

앱 기능
location

설명

지오펜스를 모니터링하려면 Entered 또는 Exited 상태 또는 둘 다를 지정해야 합니다. 제거됨 상태만 모니터링하는 지오펜스를 만들 수 없습니다.

ID 값은 null이 아니고 64자 미만이어야 합니다.

geoshape 매개 변수는 플랫폼과 일치하는 SpatialReferenceId가 있는 null이 아닌 Geocircle이어야 합니다. 그렇지 않으면 예외가 throw됩니다.

시작 시간과 기간 범위인 지오펜스의 만료 날짜가 생성 시간 및 체류 시간 값보다 빨리 발생하면 예외가 throw됩니다.

추가 정보

적용 대상