[UWP] [C#]如何处理BackgroundTask Geofence? [英] [UWP][C#]How to handle BackgroundTask Geofence?

查看:77
本文介绍了[UWP] [C#]如何处理BackgroundTask Geofence?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我很抱歉,因为我不知道如何提出这个问题!

I'm sorry because I don't know how to ask this question!

我有一个用于存储Geofence Ex的SQLite表:Geofence(fenceID,纬度,经度,文本)

I have a SQLite table to store Geofence Ex: Geofence(fenceID, latitude, longtitude, text)

在BackgroundTask项目中,

In BackgroundTask project,

1。如何在Geofence表中获取每个地理围栏的状态(地理围栏是添加到SQlite并添加到MainPage中的GeofenceMonitor)

1. How to get state of every geofence in Geofence table (geofence was add to SQlite and add to GeofenceMonitor in MainPage)

2.当每个地理围栏的状态被触发时。我如何在地理围栏表中获得该地理围栏的文本

2.When state of every geofence fired. How I get text of that geofence in Geofence table

例如:

fenceID:MyHome,纬度:xxx.xxx,经度: xxx.xxx,文字:欢迎使用UWP

fenceID: MyHome, latitude: xxx.xxx, longtitude: xxx.xxx, text: Welcome to UWP

fenceID:MyClass,纬度:xxx.xxx,经度:xxx.xxx,文字:欢迎光临MyClass

fenceID: MyClass, latitude: xxx.xxx, longtitude: xxx.xxx, text: Welcome to MyClass

3。当状态进入/退出每个地理围栏时如何制作一个简单的Toast

3. How to make a simple Toast when state Enter/Exit of every that geofence

谢谢你!

推荐答案

嗨Nguyen,

Hi Nguyen,

对于第二个问题,您想从SQlite获取文本还是实时数据? 

For your second question, do you want to get text from the SQlite or the real time data? 

最诚挚的问候,

Neal Wang

Neal Wang


这篇关于[UWP] [C#]如何处理BackgroundTask Geofence?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆