Summary: Nested Classes | Methods | Inherited Methods | [Expand All]
public final class

# AppInviteInvitation

extends Object

java.lang.Object
↳ | com.google.android.gms.appinvite.AppInviteInvitation

## Class Overview

Launches an Activity for the user to select invitees and send invitations. Provides an Intent builder that creates an Intent used to start the invitation Activity and a method to get invitation ids after the invitations have been sent.

## Summary

Nested Classes
class | AppInviteInvitation.IntentBuilder | Build an Intent to launch the invitation Activity to create and send invitations.

Public Methods
static String[] | getInvitationIds(int resultCode, Intent result) Gets the invitation ids from the `Intent` returned in `onActivityResult(int, int, android.content.Intent)` after starting the activity using `startActivityForResult(Intent, int)` where the Intent is created using `AppInviteInvitation.IntentBuilder`.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Methods

#### public static String[] getInvitationIds (int resultCode, Intent result)

Gets the invitation ids from the `Intent` returned in `onActivityResult(int, int, android.content.Intent)` after starting the activity using `startActivityForResult(Intent, int)` where the Intent is created using `AppInviteInvitation.IntentBuilder`.

##### Parameters

resultCode | The result code returned in `onActivityResult(int, int, android.content.Intent)`.
result | The Intent returned in `onActivityResult(int, int, android.content.Intent)`.

##### Returns

- The invitation ids for the invitations sent. Returns null if the result code is not `RESULT_OK`.