Code example for View

Methods: getContext

0
            @Override void doUpdate(final View view) {
                view.setOnClickListener(new View.OnClickListener() {
                    @Override 
                    public void onClick(View v) {
                        try { 
                            pendingIntent.send(view.getContext(), 0, null);
                        } catch (PendingIntent.CanceledException e) {
                            throw new RuntimeException(e);
                        } 
                    } 
                }); 
            } 
        }); 
    } 
 
    @Implementation 
    public void setViewVisibility(int viewId, final int visibility) {
        viewUpdaters.add(new ViewUpdater(viewId) {
            @Override 
            public void doUpdate(View view) {
                view.setVisibility(visibility);