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

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 int: The result code returned in onActivityResult(int, int, android.content.Intent).
result Intent: The Intent returned in onActivityResult(int, int, android.content.Intent).
Returns
String[] The invitation ids for the invitations sent. Returns null if the result code is not RESULT_OK.