diff options
| author | Charles Chen <charlesccchen@google.com> | 2021-03-05 18:07:46 +0800 | 
|---|---|---|
| committer | Charles Chen <charlesccchen@google.com> | 2021-03-19 21:56:35 +0800 | 
| commit | 0783811428958673b877674d0eff2c3fac11ceb1 (patch) | |
| tree | b4b886f1af3fbecbdd7778bdea748f3c625c1c05 /docs/html/sdk/api_diff/10/changes | |
| parent | a7ee1a9a4936985dc0e672903b1a3c45e68d1ef8 (diff) | |
Enable to listen to WindowContext's config changes
This CL overrides registerComponentCallbacks for
WindowContext. Users can use below code snippet
to listen to Configuration changes.
```
Context windowContext = context.createWindowContext(
        display, ...);
windowContext.registerComponentCallbacks(
        new ComponentCallbacks() {
            @Override
            public void onConfigurationChanged(
                    Configuration newConfig) {
                    // Do Something
                }
        });
```
Bug: 181134729
Test: atest WindowContextTests
Test: atest ComponentCallbacksControllerTest
Change-Id: Iff46607bae3c942a96b64dcc97708f3a8c33f23a
Diffstat (limited to 'docs/html/sdk/api_diff/10/changes')
0 files changed, 0 insertions, 0 deletions
