Update TerminalView and TerminalViewClient javadocs

This commit is contained in:
agnostic-apollo
2021-03-16 03:46:34 +05:00
parent 3b5d3114a6
commit 11a236a172
2 changed files with 10 additions and 10 deletions

View File

@@ -210,14 +210,11 @@ public final class TerminalView extends View {
} }
/** /**
* @param terminalViewClient Interface for communicating with the terminal view client. It allows * @param client The {@link TerminalViewClient} interface implementation to allow
* for getting various configuration options from the client and * for communication between {@link TerminalView} and its client.
* for sending back data to the client like logs, key events, both
* hardware and IME (which makes it different from that available with
* {@link View#setOnKeyListener(OnKeyListener)}, etc.
*/ */
public void setTerminalViewClient(TerminalViewClient terminalViewClient) { public void setTerminalViewClient(TerminalViewClient client) {
this.mClient = terminalViewClient; this.mClient = client;
} }
/** /**

View File

@@ -3,13 +3,16 @@ package com.termux.view;
import android.view.KeyEvent; import android.view.KeyEvent;
import android.view.MotionEvent; import android.view.MotionEvent;
import android.view.ScaleGestureDetector; import android.view.ScaleGestureDetector;
import android.view.View;
import com.termux.terminal.TerminalSession; import com.termux.terminal.TerminalSession;
/** /**
* Input and scale listener which may be set on a {@link TerminalView} through * The interface for communication between {@link TerminalView} and its client. It allows for getting
* {@link TerminalView#setTerminalViewClient(TerminalViewClient)}. * various configuration options from the client and for sending back data to the client like logs,
* <p/> * key events, both hardware and IME (which makes it different from that available with
* {@link View#setOnKeyListener(View.OnKeyListener)}, etc. It must be set for the
* {@link TerminalView} through {@link TerminalView#setTerminalViewClient(TerminalViewClient)}.
*/ */
public interface TerminalViewClient { public interface TerminalViewClient {