/// <summary> /// Add extended data to the intent. The name must include a package prefix, /// for example the app com.android.contacts would use names like "com.android.contacts.ShowAll". /// </summary> /// <param name="name"> The name of the extra data, with package prefix.</param> /// <param name="value">The Texture2D data value.</param> public void PutExtra(string name, Texture2D value) { var extra = new AN_IntentExtraValue(AN_IntentExtraValueType.Texture); extra.SetValue(new AN_Image(value).ToJson()); PutExtra(name, extra); }
/// <summary> /// Add extended data to the intent. The name must include a package prefix, /// for example the app com.android.contacts would use names like "com.android.contacts.ShowAll". /// </summary> /// <param name="name"> The name of the extra data, with package prefix.</param> /// <param name="uri">The Uri data value.</param> public void PutExtra(string name, Uri uri) { var extra = new AN_IntentExtraValue(AN_IntentExtraValueType.Uri); extra.SetValue(uri.AbsoluteUri); PutExtra(name, extra); }
/// <summary> /// Add extended data to the intent. The name must include a package prefix, /// for example the app com.android.contacts would use names like "com.android.contacts.ShowAll". /// </summary> /// <param name="name"> The name of the extra data, with package prefix.</param> /// <param name="value">The string data value.</param> public void PutExtra(string name, string value) { var extra = new AN_IntentExtraValue(AN_IntentExtraValueType.String); extra.SetValue(value); PutExtra(name, extra); }