33using System ;
44using System . Collections . Generic ;
55using System . ComponentModel ;
6-
76using Xamarin . Forms ;
87
98namespace BranchXamarinTestbed
109{
11- public class TestPage : ContentPage ,
10+ public class TestPage : ContentPage ,
1211 IBranchUrlInterface ,
1312 IBranchSessionInterface ,
1413 IBranchIdentityInterface
@@ -370,6 +369,13 @@ void GetUrlClicked(object sender, EventArgs e) {
370369
371370 Branch . GetInstance ( ) . GetShortURL ( this , universalObject , linkProperties ) ;
372371
372+ BranchUniversalObject buoTwo = new BranchUniversalObject ( ) ;
373+ buoTwo . canonicalIdentifier = "id2" ;
374+ buoTwo . metadata . AddCustomMetadata ( "testCustom" , "testData" ) ;
375+
376+ List < BranchUniversalObject > buos = new List < BranchUniversalObject > ( ) ;
377+ buos . Add ( universalObject ) ;
378+ buos . Add ( buoTwo ) ;
373379
374380 BranchEvent branchEvent = new BranchEvent ( "MY_CUSTOM_EVENT" ) ;
375381 branchEvent . SetAffiliation ( "my_affilation" ) ;
@@ -381,11 +387,11 @@ void GetUrlClicked(object sender, EventArgs e) {
381387 branchEvent . SetDescription ( "my_description" ) ;
382388 branchEvent . SetSearchQuery ( "my_search_query" ) ;
383389 branchEvent . AddCustomData ( "custom_data_key01" , "custom_data_value01" ) ;
384- branchEvent . AddContentItem ( universalObject ) ;
390+ branchEvent . AddContentItems ( buos ) ;
385391
386392 Branch . GetInstance ( ) . SendEvent ( branchEvent ) ;
387393 }
388-
394+
389395 void SendEmailClicked ( object sender , EventArgs e ) {
390396 if ( UriString != null ) {
391397// DependencyService.Get<IEmailUrl> ().EmailUrl (UriString);
0 commit comments