blob: 4d81173aca6f9da2ad19b45c6489d28fb5a36a99 [file] [log] [blame]
/*
* Copyright (c) 2022 Project CHIP Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.matter.tv.server.tvapp;
public class UserPrompterResolver {
protected static final String TAG = "UserPrompterResolver";
public native void OnPinCodeEntered(int pinCode);
public native void OnPinCodeDeclined();
public native void OnPromptAccepted();
public native void OnPromptDeclined();
public native void OnCommissionerPasscodeOK();
public native void OnCommissionerPasscodeCancel();
public native void OnMessageResponse(String messageId, long optionid);
static {
System.loadLibrary("TvApp");
}
static UserPrompter globalPrompter = null;
public static void setUserPrompter(UserPrompter prompter) {
globalPrompter = prompter;
}
public static UserPrompter getUserPrompter() {
return globalPrompter;
}
}