Skip to content

Most visited

Recently visited

navigation
WearNotifications / Wearable / src / com.example.android.wearable.wear.wearnotifications /

Controller.java

1
package com.example.android.wearable.wear.wearnotifications;
2
 
3
import android.app.Notification;
4
 
5
/**
6
 * Controller used to instruct main activity to update {@link Notification} based on changes in
7
 * the {@link CustomRecyclerAdapter} (item selected) which is tied to the
8
 * {@link android.support.wearable.view.WearableRecyclerView}.
9
 */
10
 
11
public class Controller {
12
 
13
    private StandaloneMainActivity mView;
14
 
15
    Controller(StandaloneMainActivity standaloneMainActivity) {
16
        mView = standaloneMainActivity;
17
    }
18
 
19
    public void itemSelected(String notificationStyleSelected) {
20
        mView.itemSelected(notificationStyleSelected);
21
    }
22
}
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)