Skip to content

Commit fb174cc

Browse files
committed
Update code to make android work
1 parent 3b23b5b commit fb174cc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

examples/tv-app/android/java/MyUserPrompter-JNI.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,15 @@ bool JNIMyUserPrompter::DisplaysPasscodeAndQRCode()
227227
return false;
228228
}
229229

230+
/**
231+
* Called to prompt the user for consent to allow the app commissioneeName/vendorId/productId to be installed.
232+
* For example "[commissioneeName] is requesting permission to install app to this TV, approve?"
233+
*/
234+
void JNIMyUserPrompter::PromptForAppInstallOKPermission(uint16_t vendorId, uint16_t productId, const char * commissioneeName)
235+
{
236+
ChipLogError(Zcl, "JNIMyUserPrompter::PromptForAppInstallOKPermission Needs Implementation");
237+
}
238+
230239
/**
231240
* Called to display the given setup passcode to the user,
232241
* for commissioning the given commissioneeName with the given vendorId and productId,

examples/tv-app/android/java/MyUserPrompter-JNI.h

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class JNIMyUserPrompter : public UserPrompter
2929
void PromptForCommissionOKPermission(uint16_t vendorId, uint16_t productId, const char * commissioneeName) override;
3030
void PromptForCommissionPasscode(uint16_t vendorId, uint16_t productId, const char * commissioneeName, uint16_t pairingHint,
3131
const char * pairingInstruction) override;
32+
void PromptForAppInstallOKPermission(uint16_t vendorId, uint16_t productId, const char * commissioneeName) override;
3233
void HidePromptsOnCancel(uint16_t vendorId, uint16_t productId, const char * commissioneeName) override;
3334
bool DisplaysPasscodeAndQRCode() override;
3435
void PromptWithCommissionerPasscode(uint16_t vendorId, uint16_t productId, const char * commissioneeName, uint32_t passcode,

0 commit comments

Comments
 (0)