Skip to content

Commit

Permalink
Add getOpenedCobaltService method on StarboardBridge.
Browse files Browse the repository at this point in the history
We need to access the opened CobaltService to proactively request
Kabuki to process events.

b/306034069
  • Loading branch information
Colin Liang committed Oct 27, 2023
1 parent e7bcf65 commit af7241f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,10 @@ CobaltService openCobaltService(long nativeService, String serviceName) {
return service;
}

public CobaltService getOpenedCobaltService(String serviceName) {
return cobaltServices.get(serviceName);
}

@SuppressWarnings("unused")
@UsedByNative
void closeCobaltService(String serviceName) {
Expand Down

0 comments on commit af7241f

Please sign in to comment.