React Native Location
    Preparing search index...

    Interface Subscription

    The skeleton of the Subscription class.

    interface Subscription {
        id: string;
        onChange: (callback: OnChangeEvent) => Subscription;
        onError: (callback: OnErrorEvent) => Subscription;
        unsubscribe: () => void;
    }
    Index

    Properties

    id: string

    The unique id of the subscription.

    onChange: (callback: OnChangeEvent) => Subscription

    The event that will trigger the subscription when any location change.

    onError: (callback: OnErrorEvent) => Subscription

    The event that will trigger the subscription when any error occurs.

    unsubscribe: () => void

    The method to unsubscribe subscription.