質問編集履歴

1

コード追加

2021/08/25 09:39

投稿

Eliza
Eliza

スコア0

test CHANGED
File without changes
test CHANGED
@@ -132,7 +132,7 @@
132
132
 
133
133
 
134
134
 
135
- public void AuthCreate(Context context) {
135
+ public void AuthCheck(Context context) {
136
136
 
137
137
  Toast.makeText(context, "call", Toast.LENGTH_SHORT).show();
138
138
 
@@ -166,6 +166,44 @@
166
166
 
167
167
 
168
168
 
169
+ ```C#
170
+
171
+ using(var nativeDialog = new AndroidJavaClass("com.example.biometricslibs.MainActivity"))
172
+
173
+ {
174
+
175
+ using(var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
176
+
177
+ {
178
+
179
+ using(var currentUnityActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"))
180
+
181
+ {
182
+
183
+ using(var instance = nativeDialog.CallStatic<AndroidJavaObject>("instance"))
184
+
185
+ {
186
+
187
+ instance.Call(
188
+
189
+ "AuthCheck",
190
+
191
+ currentUnityActivity
192
+
193
+ );
194
+
195
+ }
196
+
197
+ }
198
+
199
+ }
200
+
201
+ }
202
+
203
+ ```
204
+
205
+
206
+
169
207
  ### 補足情報(FW/ツールのバージョンなど)
170
208
 
171
209