|
static final String | ACCESS_KEY = "${YOUR_ACCESS_KEY_HERE}" |
|
static final String | CHANNEL_ID = "PorcupineServiceChannel" |
|
Definition at line 39 of file PorcupineService.java.
◆ createNotificationChannel()
void ai.picovoice.porcupinedemoservice.PorcupineService.createNotificationChannel |
( |
| ) |
|
|
inlineprivate |
◆ getNotification()
Notification ai.picovoice.porcupinedemoservice.PorcupineService.getNotification |
( |
String |
title, |
|
|
String |
message |
|
) |
| |
|
inlineprivate |
◆ onBind()
IBinder ai.picovoice.porcupinedemoservice.PorcupineService.onBind |
( |
Intent |
intent | ) |
|
|
inline |
◆ onDestroy()
void ai.picovoice.porcupinedemoservice.PorcupineService.onDestroy |
( |
| ) |
|
|
inline |
◆ onPorcupineInitError()
void ai.picovoice.porcupinedemoservice.PorcupineService.onPorcupineInitError |
( |
String |
message | ) |
|
|
inlineprivate |
◆ onStartCommand()
int ai.picovoice.porcupinedemoservice.PorcupineService.onStartCommand |
( |
Intent |
intent, |
|
|
int |
flags, |
|
|
int |
startId |
|
) |
| |
|
inline |
◆ ACCESS_KEY
final String ai.picovoice.porcupinedemoservice.PorcupineService.ACCESS_KEY = "${YOUR_ACCESS_KEY_HERE}" |
|
staticprivate |
◆ CHANNEL_ID
final String ai.picovoice.porcupinedemoservice.PorcupineService.CHANNEL_ID = "PorcupineServiceChannel" |
|
staticprivate |
◆ numUtterances
int ai.picovoice.porcupinedemoservice.PorcupineService.numUtterances |
|
private |
◆ porcupineManager
PorcupineManager ai.picovoice.porcupinedemoservice.PorcupineService.porcupineManager |
|
private |
◆ porcupineManagerCallback
Initial value:= (keywordIndex) -> {
final String contentText =
numUtterances == 1 ?
" time!" :
" times!";
"Wake word",
NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
assert notificationManager != null;
notificationManager.notify(1234, n);
}
Definition at line 45 of file PorcupineService.java.
The documentation for this class was generated from the following file: