GeofenceMonitor.StatusChanged 이벤트

정의

GeofenceMonitor의 상태 변경되었을 때 발생합니다.

// Register
event_token StatusChanged(TypedEventHandler<GeofenceMonitor, IInspectable const&> const& handler) const;

// Revoke with event_token
void StatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
GeofenceMonitor::StatusChanged_revoker StatusChanged(auto_revoke_t, TypedEventHandler<GeofenceMonitor, IInspectable const&> const& handler) const;
public event TypedEventHandler<GeofenceMonitor,object> StatusChanged;
function onStatusChanged(eventArgs) { /* Your code */ }
geofenceMonitor.addEventListener("statuschanged", onStatusChanged);
geofenceMonitor.removeEventListener("statuschanged", onStatusChanged);
- or -
geofenceMonitor.onstatuschanged = onStatusChanged;
Public Custom Event StatusChanged As TypedEventHandler(Of GeofenceMonitor, Object) 

이벤트 유형

Windows 요구 사항

앱 기능
location

설명

지오펜스를 사용하는 경우 GeofenceMonitor의 StatusChanged 이벤트를 사용하여 Geolocator 클래스의 StatusChanged 이벤트 대신 위치 권한의 변경 내용을 모니터링합니다. Disabled의 GeofenceMonitorStatus는 **Disabled **PositionStatus)와 동일합니다. 둘 다 앱에 위치에 액세스할 수 있는 권한이 없음을 나타냅니다.

적용 대상

추가 정보