subscribe method

void subscribe(
  1. Subscription subscription
)

Adds a subscription to receive notifications when events occur.

Implementation

void subscribe(Subscription subscription);