Class Subscription

com.yandex.runtime.subscription

public abstract class Subscription

Class providing weak subscription.

Subscribed listeners will be auto unsubscribed and then they will be garbage collected.

Methods

abstract NativeObject createNativeListener(Listener listener)

Abstract method to create native listener.

NativeObject get(Listener listener)

Subscribes listener if not subscribed.

Method Detail

createNativeListener

public abstract NativeObject createNativeListener (Listener listener)

Abstract method to create native listener.

get

public NativeObject get (Listener listener)

Subscribes listener if not subscribed.

Returns:

listener's NativeObject or null if listener itself is null.