Skip to content

Commit

Permalink
Add getOpenedCobaltService method on StarboardBridge. (#1861)
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

Co-authored-by: Colin Liang <colinliang@google.com>
  • Loading branch information
zhongqiliang and Colin Liang authored Oct 27, 2023
1 parent 60a61d7 commit ca3849e
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 ca3849e

Please sign in to comment.