Update Contenet Capture API discription

There are missing API description at getServiceComponentName in
ContentCaptureManager. Some errors may occur and an exception may be
thrown. So update the javadoc to remind user to handle.

Fixes: 203368373
Test: make
Change-Id: I979c81c74cda4e50627dc0c83ae7c33b333b9255
This commit is contained in:
TYM Tsai
2021-11-26 21:15:13 +08:00
parent 4ce27c5400
commit 7d888cbc2f

View File

@@ -483,6 +483,8 @@ public final class ContentCaptureManager {
/**
* Returns the component name of the system service that is consuming the captured events for
* the current user.
*
* @throws RuntimeException if getting the component name is timed out.
*/
@Nullable
public ComponentName getServiceComponentName() {