Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
App.SetDockBadgeLabel
Sets the string to be displayed in the tile's badging area.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
App | 2.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "App.SetDockBadgeLabel"; text ) More
(old name: AppDockTile.setBadgeLabel)
Parameters
Parameter | Description | Example |
---|---|---|
text | The localized string to display. This string can contain a count value or other badging information. To clear the badge string, specify an empty string "". | "123" |
Result
Returns OK on success.
Description
Sets the string to be displayed in the tile's badging area.The appearance of the badge area is system defined.
Available in macOS v10.5 and later.
iOS added in 7.2, but the badge is a number.
Examples
Set and query dock badge:
Set Variable [$r; Value:MBS( "App.SetDockBadgeLabel"; "123" )]
Show Custom Dialog [MBS( "App.GetDockBadgeLabel" )]
Clear it:
MBS( "App.SetDockBadgeLabel"; "" )
See also
Release notes
- Version 10.5
- Improved App.GetDockBadgeLabel and App.SetDockBadgeLabel for iOS to not cause warning message.
- Version 7.2
- Implemented App.SetDockBadgeLabel and App.GetDockBadgeLabel for iOS.
Blog Entries
- MBS @ FMTraining.TV
- Customize your FileMaker solution
- MBS FileMaker Plugin, version 10.5pr1
- MBS FileMaker Plugin, version 7.2pr3
- More customization of FileMaker solutions
- MBS Filemaker Plugin, version 2.6pr6
- Add a badge to the application icon
This function checks for a license.
Created 18th August 2014, last changed 6th June 2021