質問編集履歴
2
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,53 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
using System;
|
26
25
|
|
27
|
-
using System.Collections.Generic;
|
28
|
-
|
29
|
-
using CoreLocation;
|
30
|
-
|
31
|
-
using Foundation;
|
32
|
-
|
33
|
-
using Hoge.iOS;
|
34
|
-
|
35
|
-
using UIKit;
|
36
|
-
|
37
|
-
using Xamarin.Forms;
|
38
|
-
|
39
|
-
using CoreBluetooth;
|
40
|
-
|
41
|
-
using CoreFoundation;
|
42
|
-
|
43
|
-
using AVFoundation;
|
44
|
-
|
45
|
-
using MultipeerConnectivity;
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
[assembly: Dependency(typeof(BeaconService))]
|
50
|
-
|
51
|
-
namespace Hoge.iOS
|
52
|
-
|
53
|
-
{
|
54
|
-
|
55
|
-
public class BeaconService : IBeaconService
|
56
|
-
|
57
|
-
{
|
58
|
-
|
59
|
-
CLLocationManager locationmanager;
|
60
|
-
|
61
|
-
NSUuid beaconUUID;
|
62
|
-
|
63
|
-
string beaconId;
|
64
|
-
|
65
|
-
CLBeaconRegion beaconRegion;
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
public void Search()
|
70
|
-
|
71
|
-
{
|
72
26
|
|
73
27
|
locationmanager = new CLLocationManager();
|
74
28
|
|
@@ -135,9 +89,3 @@
|
|
135
89
|
locationmanager.StartMonitoring(beaconRegion);
|
136
90
|
|
137
91
|
locationmanager.StartRangingBeacons(beaconRegion);
|
138
|
-
|
139
|
-
}
|
140
|
-
|
141
|
-
}
|
142
|
-
|
143
|
-
}
|
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,13 +46,13 @@
|
|
46
46
|
|
47
47
|
|
48
48
|
|
49
|
-
[assembly: Dependency(typeof(BeaconService
|
49
|
+
[assembly: Dependency(typeof(BeaconService))]
|
50
50
|
|
51
51
|
namespace Hoge.iOS
|
52
52
|
|
53
53
|
{
|
54
54
|
|
55
|
-
public class BeaconService
|
55
|
+
public class BeaconService : IBeaconService
|
56
56
|
|
57
57
|
{
|
58
58
|
|
@@ -62,11 +62,7 @@
|
|
62
62
|
|
63
63
|
string beaconId;
|
64
64
|
|
65
|
-
|
66
|
-
|
67
65
|
CLBeaconRegion beaconRegion;
|
68
|
-
|
69
|
-
|
70
66
|
|
71
67
|
|
72
68
|
|
@@ -110,7 +106,7 @@
|
|
110
106
|
|
111
107
|
locationmanager.RegionLeft += (object sender, CLRegionEventArgs e) => {
|
112
108
|
|
113
|
-
|
109
|
+
|
114
110
|
|
115
111
|
};
|
116
112
|
|
@@ -142,26 +138,6 @@
|
|
142
138
|
|
143
139
|
}
|
144
140
|
|
145
|
-
|
146
|
-
|
147
|
-
public void SearchStop()
|
148
|
-
|
149
|
-
{
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
}
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
public void InitializeService()
|
158
|
-
|
159
|
-
{
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
}
|
164
|
-
|
165
141
|
}
|
166
142
|
|
167
143
|
}
|