/// <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 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="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); }
/// <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="values">The List<Uri> data value.</param> public void PutExtra(string name, params Uri[] values) { var extra = new AN_IntentExtraValue(AN_IntentExtraValueType.Uri); foreach (var uri in values) { extra.AddValue(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="values">The List<Texture2D> data value.</param> public void PutExtra(string name, params Texture2D[] values) { var extra = new AN_IntentExtraValue(AN_IntentExtraValueType.TexturesArray); foreach (var tex in values) { extra.AddValue(new AN_Image(tex).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="value">The string data value.</param> public void PutExtra(string name, params string[] values) { var extra = new AN_IntentExtraValue(AN_IntentExtraValueType.StringsArray); foreach (var str in values) { extra.AddValue(str); } PutExtra(name, extra); }
//-------------------------------------- // Private Methods //-------------------------------------- private void PutExtra(string name, AN_IntentExtraValue extra) { m_ExtraKeys.Add(name); m_ExtraValues.Add(extra); }