react-native-google-maps-plus - v1.10.2
    Preparing search index...

    Interface RNGoogleMapsPlusModule

    Platform utilities for react-native-google-maps-plus. Provides system-level operations unrelated to a specific map instance.

    interface RNGoogleMapsPlusModule {
        name: string;
        dispose(): void;
        equals(other: HybridObject<{ android: "kotlin"; ios: "swift" }>): boolean;
        isGooglePlayServicesAvailable(): boolean;
        openLocationSettings(): void;
        requestLocationPermission(): Promise<RNLocationPermissionResult>;
        showLocationDialog(): void;
        toString(): string;
    }

    Hierarchy

    • HybridObject<{ android: "kotlin"; ios: "swift" }>
      • RNGoogleMapsPlusModule
    Index

    Properties

    name: string

    The HybridObject's name.

    Methods

    • Disposes any resources this HybridObject might hold natively, and releases this HybridObject's NativeState.

      After calling (), this object can no longer be used.

      Eagerly disposing a HybridObject could be beneficial for a queue-/handler-architecture where a bunch of Hybrid Objects are allocated, and later deallocated once a callback (e.g. a render function) completes.

      Returns void

      It is NOT required to call () manually, as the JavaScript Garbage Collector automatically disposes and releases any resources when needed. It is purely optional to eagerly-, and manually-, call () here - use with caution!

    • Returns whether this HybridObject is the same object as other.

      While two HybridObjects might not be equal when compared with ==, they might still hold the same underlying HybridObject, in which case equals(other) will return true.

      Parameters

      • other: HybridObject<{ android: "kotlin"; ios: "swift" }>

      Returns boolean

      const hybridA = SomeModule.getExistingHybridInstance()
      const hybridB = SomeModule.getExistingHybridInstance()
      console.log(hybridA.equals(hybridB)) // true
    • Checks Google Play Services availability. iOS: always returns false. Android: performs a real system check.

      Returns boolean

    • Opens the OS location settings. iOS: opens the app settings. Android: opens system location settings.

      Returns void

    • Returns a string representation of the given HybridObject.

      Unless overridden by the HybridObject, this will return the name of the object.

      Returns string

      const hybridA = SomeModule.getExistingHybridInstance()
      console.log(hybridA.toString()) // [HybridObject HybridA]