NUWA APP Feature Interface

This lesson descript how to call nuwa app feature by delegating the work to another nuwa app on the device.

It allow developer do not need implement detail specific flow, and quick integrate on 3rd app.

NUWA APP Feature List

NUWA APP Feature InterfaceNUWA APP Feature ListFace TrainingExampleMeasure TemperatureParametersGet Activity ResultExampleLaunch Video CallExamplePlay mbtx format ContentPrepare conditionExample of play mbtxExample of stop playReceive Play statusNotification presentHeadsUp Notification Message compositionIntent ParametersSample CodeExample effectNotification BarExample effect

 

Face Training

Allow developer call nuwa face recognition app to add one Contact user.

Example

=================================================

Measure Temperature

Allow developer call nuwa health app to get human temperature

NOTICE : It must download Nuwa Health App from NuwaStore and work with NUWA Ocular product

Robot Support Version :

Parameters

Intent  
Actioncom.nuwarobotics.health.action.facerec 
ExtraHealthConstant.EXTRA_REPORT1: return name and temperature
ExtraHealthConstant.EXTRA_PRECISE0: Flir
1: Melexis
ExtraHealthConstant.EXTRA_KEBBI_FACE0: Don’t show Kebbi face
1: Show Kebbi face
ExtraHealthConstant.EXTRA_FACE_RECOGfalse: Don’t recognize face
true: Recognize face
Request CodeHealthConstant.MEASURE_FLOW_CONTINUOUS_SINGLE1: Measure single person.

Get Activity Result

FiledIntent ExtraDataType
Face NamegetStringExtra(HealthConstant.INTENT_DATA_FACE)String
TemperaturegetStringExtra(HealthConstant.INTENT_DATA_TEMPERATURE)String
TimegetStringExtra(HealthConstant.INTENT_DATA_TIME)DateTime
MaskgetStringExtra(HealthConstant.INTENT_DATA_MASK)Y: Wear mask
N: No mask

 

Example

 

=================================================

Launch Video Call

Allow developer lunch NUWA Video Call App and call to target contact

Example

=================================================

Play mbtx format Content

Allow user play mbtx file which exported from Nuwa BizTool Content Editor

 

Prepare condition

  1. Download *.mbtx file from Nuwa ContentEditor

  2. manually clone *.mbtx file to /storage/emulated/0/contenteditor/

    1. For example, file name is abc.mbtx
  3. Execute following code and set PlayId as abc

 

Example of play mbtx

Example of stop play

Receive Play status

 

Notification present

HeadsUp Notification

Message composition

avatar

Intent Parameters

extra_bundle:Collection of all parameters of notification extra_app_icon:App icon(support 80dp X 80dp) extra_app_name:Application name of an App extra_content:Message content, which is supported ths String or SpannString class of CharSequence extra_intent:Go to the intent after touching a headup notification(PendingIntent)

Sample Code

Example effect

avatar

Notification Bar

Use android native way. (https://developer.android.com/training/notify-user/build-notification)

Example effect

avatar