กล่องข้อความสำหรับ Xamarin
Xamarin.iOS
Anchor link to1. เพิ่มแพ็กเกจ Nuget Pushwoosh.Inbox.Xamarin.iOS ลงในโปรเจกต์ของคุณ
2. ในโปรเจกต์ของคุณ ให้เปิด AppDelegate.cs และเชื่อมต่อ Pushwoosh.Inbox โดยเพิ่มบรรทัด using Pushwoosh.Inbox
3. หากต้องการแสดง Inbox UI ในแอปของคุณ ให้เพิ่ม Inbox view controller:
NavigationController.PushViewController(PWIInboxUI.CreateInboxControllerWithStyle(PWIInboxStyle.DefaultStyle()), true);4. หากต้องการให้ Inbox ดูเป็นส่วนหนึ่งของแอปของคุณ ให้เปลี่ยนพารามิเตอร์ของ PWIInboxStyle คุณสามารถปรับแต่งพารามิเตอร์ต่าง ๆ เช่น font, background color เป็นต้น
PWIInboxStyle inboxStyle = PWIInboxStyle.CustomStyleWithDefaultImageIcon( UIImage.FromBundle("Default"), UIColor.DarkTextColor, UIColor.Blue, UIFont.SystemFontOfSize(17));inboxStyle.BackgroundColor = UIColor.White;inboxStyle.SelectionColor = UIColor.Orange;inboxStyle.ListErrorMessage = "Custom error message";inboxStyle.ListEmptyMessage = "Custom empty message";PWIInboxStyle.SetupDefaultStyle(inboxStyle);Xamarin.Android
Anchor link to1. เพิ่มแพ็กเกจ Nuget Pushwoosh.Inbox.Xamarin.Android ลงในโปรเจกต์ของคุณ
2. เชื่อมต่อ Pushwoosh.Inbox โดยเพิ่มบรรทัดต่อไปนี้:
using Pushwoosh.Inbox;using Pushwoosh.Inbox.UI;using Pushwoosh.Inbox.UI.Activity;3. หากต้องการแสดง Inbox UI ในแอปของคุณ ให้เริ่ม InboxActivity:
Intent intent = new Intent(this, typeof(InboxActivity));StartActivity(intent);4. หากต้องการให้ Inbox ดูเป็นส่วนหนึ่งของแอปของคุณ ให้เปลี่ยนพารามิเตอร์ของ PushwooshInboxStyle คุณสามารถปรับแต่งพารามิเตอร์ต่าง ๆ เช่น font, background color เป็นต้น
PushwooshInboxStyle inboxStyle = PushwooshInboxStyle.Instance;inboxStyle.BackgroundColor = new Integer(Color.GhostWhite);inboxStyle.HighlightColor = new Integer(Color.ParseColor("#ff00ff"));inboxStyle.ListErrorMessage = "Custom error message";inboxStyle.ListEmptyText = "Custom empty message";inboxStyle.DefaultImageIcon = Resource.Drawable.inbox_message;แบ่งปันความคิดเห็นของคุณกับเรา
Anchor link toความคิดเห็นของคุณช่วยให้เราสร้างประสบการณ์ที่ดีขึ้น เราจึงยินดีรับฟังจากคุณหากคุณมีปัญหาใด ๆ ในระหว่างกระบวนการผสานรวม SDK หากคุณประสบปัญหาใด ๆ โปรดอย่าลังเลที่จะแบ่งปันความคิดเห็นของคุณกับเรา ผ่านแบบฟอร์มนี้