Here are the examples of the csharp api class Android.Support.V4.App.NotificationCompat.Builder.SetContentText(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
19 Examples
0
1. Example
Project: XamarinMediaManager
Source File: MediaNotificationManagerImplementation.cs
Source File: MediaNotificationManagerImplementation.cs
private void SetMetadata(IMediaFile mediaFile) { _builder.SetContentTitle(mediaFile?.Metadata?.Title ?? string.Empty); _builder.SetContentText(mediaFile?.Metadata?.Artist ?? string.Empty); _builder.SetContentInfo(mediaFile?.Metadata?.Album ?? string.Empty); _builder.SetLargeIcon(mediaFile?.Metadata?.Art as Bitmap); }
0
2. Example
Project: Android-AltBeacon-Library
Source File: BeaconReferenceApplication.cs
Source File: BeaconReferenceApplication.cs
void SendNotification() { var builder = new NotificationCompat.Builder(this) .SetContentTitle("AltBeacon Reference Application") .SetContentText("A beacon is nearby.") .SetSmallIcon(Android.Resource.Drawable.IcDialogInfo); var stackBuilder = Android.App.TaskStackBuilder.Create(this); stackBuilder.AddNextIntent(new Intent(this, typeof(MainActivity))); var resultPendingIntent = stackBuilder.GetPendingIntent( 0, PendingIntentFlags.UpdateCurrent ); builder.SetContentIntent(resultPendingIntent); var notificationManager = (NotificationManager) this.GetSystemService(Context.NotificationService); notificationManager.Notify(1, builder.Build()); }
0
3. Example
Project: Android-AltBeacon-Library
Source File: AltBeaconSampleApplication.cs
Source File: AltBeaconSampleApplication.cs
private void SendNotification() { var builder = new NotificationCompat.Builder(this) .SetContentTitle("AltBeacon Reference Application") .SetContentText("A beacon is nearby.") .SetSmallIcon(Android.Resource.Drawable.IcDialogInfo); var stackBuilder = Android.App.TaskStackBuilder.Create(this); stackBuilder.AddNextIntent(new Intent(this, typeof(MainActivity))); var resultPendingIntent = stackBuilder.GetPendingIntent( 0, PendingIntentFlags.UpdateCurrent ); builder.SetContentIntent(resultPendingIntent); var notificationManager = (NotificationManager)this.GetSystemService(Context.NotificationService); notificationManager.Notify(1, builder.Build()); }
0
4. Example
Project: Android-AltBeacon-Library
Source File: BeaconReferenceApplication.cs
Source File: BeaconReferenceApplication.cs
void SendNotification() { NotificationCompat.Builder builder = new NotificationCompat.Builder(this) .SetContentTitle("Beacon Reference Application") .SetContentText("An beacon is nearby.") .SetSmallIcon(Resource.Mipmap.Icon); var stackBuilder = TaskStackBuilder.Create(this); stackBuilder.AddNextIntent(new Intent(this, typeof(MonitoringActivity))); PendingIntent resultPendingIntent = stackBuilder.GetPendingIntent( 0, PendingIntentFlags.UpdateCurrent ); builder.SetContentIntent(resultPendingIntent); NotificationManager notificationManager = (NotificationManager)this.GetSystemService(Context.NotificationService); notificationManager.Notify(1, builder.Build()); }
0
5. Example
Project: PushNotificationPlugin
Source File: DefaultPushNotificationHandler.cs
Source File: DefaultPushNotificationHandler.cs
private void ResolveLocalizedParameters(NotificationCompat.Builder notificationBuilder, IDictionary&/n ..... /n //View Source file for more details /n }
0
6. Example
Project: FirebasePushNotificationPlugin
Source File: DefaultPushNotificationHandler.cs
Source File: DefaultPushNotificationHandler.cs
private void ResolveLocalizedParameters(NotificationCompat.Builder notificationBuilder, IDictionary&/n ..... /n //View Source file for more details /n }
0
7. Example
Project: OKHOSTING.UI
Source File: StreamingBackgroundService.cs
Source File: StreamingBackgroundService.cs
private void StartForeground() { if (ReturnTo == null) { return; } var pendingIntent = PendingIntent.GetActivity(this, 0, new Intent(this, ReturnTo), 0); NotificationCompat.Builder builder = new NotificationCompat.Builder(this); builder.SetTicker("Señal Global"); builder.SetContentTitle("Señal Global"); builder.SetContentText("Estas escuchando Señal Global"); builder.SetContentIntent(pendingIntent); builder.SetOngoing(true); builder.SetCategory(Notification.CategoryService); builder.SetSmallIcon(Resource.Drawable.icon); StartForeground(NotificationId, builder.Build()); }
0
8. Example
Project: OKHOSTING.UI
Source File: AudioPlayer.cs
Source File: AudioPlayer.cs
private void StartForeground() { if (NotificationReturnTo == null) { return; } var pendingIntent = PendingIntent.GetActivity(this, 0, new Intent(this, NotificationReturnTo), 0); NotificationCompat.Builder builder = new NotificationCompat.Builder(this); builder.SetTicker(NotificationTitle); builder.SetContentTitle(NotificationTitle); builder.SetContentText(NotificationText); builder.SetContentIntent(pendingIntent); builder.SetOngoing(true); builder.SetCategory(Notification.CategoryService); builder.SetSmallIcon(NotificationIcon); StartForeground(NotificationId, builder.Build()); }
0
9. Example
Project: ediabaslib
Source File: ForegroundService.cs
Source File: ForegroundService.cs
private void RegisterForegroundService() { var notification = new NotificationCompat.Builder(this) .SetContentTitle(Resources.GetString(Resource.String.app_name)) .SetContentText(Resources.GetString(Resource.String.service_notification)) .SetSmallIcon(Resource.Drawable.ic_stat_obd) .SetContentIntent(BuildIntentToShowMainActivity()) .SetOngoing(true) .AddAction(BuildStopServiceAction()) .Build(); // Enlist this instance of the service as a foreground service StartForeground(ServiceRunningNotificationId, notification); }
0
10. Example
Project: GithubXamarin
Source File: GithubNotificationsService.cs
Source File: GithubNotificationsService.cs
protected override void OnHandleIntent(Intent intent) { if (!CrossConnectivity.C/n ..... /n //View Source file for more details /n }
0
11. Example
Project: xamarin-plugins
Source File: PushNotificationGcmListener.cs
Source File: PushNotificationGcmListener.cs
void CreateNotification(string title, string message, int notifyId, string tag, Bundle extras) /n ..... /n //View Source file for more details /n }
0
12. Example
Project: KinderChat
Source File: PushNotifications.cs
Source File: PushNotifications.cs
private void ShowNotification(Intent intent) { const string key = "msg"; if (!intent.Extras/n ..... /n //View Source file for more details /n }
0
13. Example
Project: MALClient
Source File: AiredNotificationCheckReceiver.cs
Source File: AiredNotificationCheckReceiver.cs
public override async void OnReceive(Context context, Intent intent) { try /n ..... /n //View Source file for more details /n }
0
14. Example
Project: app-evolve
Source File: EvolveGcmListenerService.cs
Source File: EvolveGcmListenerService.cs
void SendNotification(string message) { try { Consol/n ..... /n //View Source file for more details /n }
0
15. Example
Project: MALClient
Source File: NotificationCheckBroadcastReceiver.cs
Source File: NotificationCheckBroadcastReceiver.cs
private async void ScheduleToast(Context context, MalNotification notification) { /n ..... /n //View Source file for more details /n }
0
16. Example
Project: notifications
Source File: NotificationsImpl.cs
Source File: NotificationsImpl.cs
public override Task Send(Notification notification) { if (notification.Id == nu/n ..... /n //View Source file for more details /n }
0
17. Example
Project: gMusic
Source File: MediaNotificationManager.cs
Source File: MediaNotificationManager.cs
Notification CreateNotification() { if (metadata == null || playbackState == null) return n/n ..... /n //View Source file for more details /n }
0
18. Example
Project: PushNotificationPlugin
Source File: DefaultPushNotificationHandler.cs
Source File: DefaultPushNotificationHandler.cs
public void OnReceived(IDictionary<string, object> parameters) { System.Di/n ..... /n //View Source file for more details /n }
0
19. Example
Project: FirebasePushNotificationPlugin
Source File: DefaultPushNotificationHandler.cs
Source File: DefaultPushNotificationHandler.cs
public void OnReceived(IDictionary<string, object> parameters) { System.Di/n ..... /n //View Source file for more details /n }