Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ai.picovoice.porcupinedemoservice.MainActivity Class Reference
Inheritance diagram for ai.picovoice.porcupinedemoservice.MainActivity:
Inheritance graph
[legend]

Classes

class  ServiceBroadcastReceiver
 

Public Member Functions

void onRequestPermissionsResult (int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
 

Protected Member Functions

void onCreate (Bundle savedInstanceState)
 
void onDestroy ()
 
void onResume ()
 

Private Member Functions

boolean hasRecordPermission ()
 
void onPorcupineInitError (final String errorMessage)
 
void requestRecordPermission ()
 
void startService ()
 
void stopService ()
 

Private Attributes

ServiceBroadcastReceiver receiver
 

Detailed Description

Definition at line 31 of file porcupine/demo/android/Service/porcupine-service-demo-app/src/main/java/ai/picovoice/porcupinedemoservice/MainActivity.java.

Member Function Documentation

◆ hasRecordPermission()

boolean ai.picovoice.porcupinedemoservice.MainActivity.hasRecordPermission ( )
inlineprivate

◆ onCreate()

void ai.picovoice.porcupinedemoservice.MainActivity.onCreate ( Bundle  savedInstanceState)
inlineprotected

◆ onDestroy()

void ai.picovoice.porcupinedemoservice.MainActivity.onDestroy ( )
inlineprotected

◆ onPorcupineInitError()

void ai.picovoice.porcupinedemoservice.MainActivity.onPorcupineInitError ( final String  errorMessage)
inlineprivate

◆ onRequestPermissionsResult()

void ai.picovoice.porcupinedemoservice.MainActivity.onRequestPermissionsResult ( int  requestCode,
@NonNull String[]  permissions,
@NonNull int[]  grantResults 
)
inline

◆ onResume()

void ai.picovoice.porcupinedemoservice.MainActivity.onResume ( )
inlineprotected

◆ requestRecordPermission()

void ai.picovoice.porcupinedemoservice.MainActivity.requestRecordPermission ( )
inlineprivate

◆ startService()

void ai.picovoice.porcupinedemoservice.MainActivity.startService ( )
inlineprivate

◆ stopService()

void ai.picovoice.porcupinedemoservice.MainActivity.stopService ( )
inlineprivate

Member Data Documentation

◆ receiver

ServiceBroadcastReceiver ai.picovoice.porcupinedemoservice.MainActivity.receiver
private

The documentation for this class was generated from the following file:


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:20