Struct xpcom::interfaces::nsIGeolocationProvider [] [src]

#[repr(C)]
pub struct nsIGeolocationProvider { /* fields omitted */ }

interface nsIGeolocationProvider : nsISupports

/**
 * Interface provides location information to the nsGeolocator
 * via the nsIDOMGeolocationCallback interface.  After
 * startup is called, any geo location change should call
 * callback.update().
 */

Methods

impl nsIGeolocationProvider
[src]

[src]

Cast this nsIGeolocationProvider to one of its base interfaces.

impl nsIGeolocationProvider
[src]

[src]

/**
   * Start up the provider.  This is called before any other
   * method.  may be called multiple times.
   */

void startup ();

[src]

/**
   * watch
   * When a location change is observed, notify the callback.
   */

void watch (in nsIGeolocationUpdate callback);

[src]

/**
   * shutdown
   * Shuts down the location device.
   */

void shutdown ();

[src]

/**
   * hint to provide to use any amount of power to provide a better result
   */

void setHighAccuracy (in boolean enable);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIGeolocationProvider
[src]

IID: nsIID = nsID(2890535739, 40850, 20348, [179, 105, 212, 12, 182, 177, 118, 80])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIGeolocationProvider
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIGeolocationProvider
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.