### Start Beacon Monitoring Command (XAML) Source: https://community.rockrms.com/developer/mobile-docs/essentials/advanced-topics/proximity-attendance Initiates the beacon monitoring process. This basic example shows a button that triggers the StartBeaconMonitoring command. It guides the user through enabling location permissions. ```XAML ``` -------------------------------- ### Detail Page Linking Example - Rock RMS Source: https://community.rockrms.com/developer/mobile-docs/essentials/blocks/connection/connection-type-list_Version=1.0.0 This code snippet shows how to implement navigation to a detail page when a connection type is selected. It utilizes Liquid templating and XAML gesture recognizers to pass the connection type's GUID as a query parameter. ```Liquid {% if DetailPage != null %} {% endif %} ``` -------------------------------- ### Logout Command Examples Source: https://community.rockrms.com/developer/mobile-docs/essentials/commands/utility-commands Provides examples for the Logout command. It shows a basic logout and implies the possibility of using CommandParameter to reload the current page or navigate to a specific page using its Guid. ```XAML ``` -------------------------------- ### Multiple Confetti Systems in a Single View (XAML) Source: https://community.rockrms.com/developer/mobile-docs/essentials/controls/content-controls/confetti-view Illustrates how to implement multiple, distinct confetti systems within a single Rock:ConfettiView. This example shows a combination of an infinite emitter and a burst emitter, each with its own set of customizable properties, allowing for complex visual effects. ```xaml Grid Rock:Zone.Expands="true"> ``` -------------------------------- ### Get Connection Opportunity GUIDs (SQL) Source: https://community.rockrms.com/developer/mobile-docs/essentials/blocks/connection/connection-request-list This SQL query retrieves the Name and Guid of all available Connection Opportunities. This is necessary to identify the specific opportunity for which you want to display requests. ```sql SELECT Name, Guid FROM [ConnectionOpportunity] ``` -------------------------------- ### Callback Command Example Source: https://community.rockrms.com/developer/mobile-docs/essentials/commands/utility-commands Demonstrates how to use the Callback command with a plain string for the callback name and with CallbackParameters for passing arguments. The CommandParameter is used to specify the callback function name or an instance of CallbackParameters. ```XAML ``` -------------------------------- ### Start Animation Automatically on Load (XAML) Source: https://community.rockrms.com/developer/mobile-docs/essentials/animations_Version=1.0.0 This example shows how to automatically start a 'FadeOut' animation when a Label element is loaded. It utilizes a Rock:BeginAnimationBehavior attached to the Label, which triggers the animation shortly after the element is attached to its parent. A small delay is inherent to this behavior. ```xaml ``` -------------------------------- ### Countdown Timer with Lava Filter for Dynamic Date Source: https://community.rockrms.com/developer/mobile-docs/essentials/controls/content-controls/countdown_Version=1.0.0 This example shows how to dynamically set the countdown's start time using a Lava filter. It calculates the start date by adding a specified number of days to the current date, offering more flexibility than a static string. ```Rock RMS / Lava ``` -------------------------------- ### CopyToClipboard Command Example Source: https://community.rockrms.com/developer/mobile-docs/essentials/commands/utility-commands Shows how to use the CopyToClipboard command to set text to the user's clipboard. The CommandParameter directly accepts the string content to be copied. ```XAML ``` -------------------------------- ### Page QR Code Format Source: https://community.rockrms.com/developer/mobile-docs/essentials/controls/content-controls/campus-context-picker/camera-code-reader This example shows the format for a page QR code. Codes begin with 'RK:PG:' followed by a page GUID and optional query string parameters for navigation. ```text RK:PG:6cb5d894-02e1-4868-93b1-6d52d94295de?source=qrcode ``` -------------------------------- ### Rock RMS Campus Picker Example (RockML) Source: https://community.rockrms.com/developer/mobile-docs/essentials/controls/form-fields/campus-picker This code snippet demonstrates how to implement the Rock RMS Campus Picker component within a RockML view. It shows how to set basic properties like Label, IsRequired, and SelectedValue. This component automatically fetches and displays a list of campuses configured on the Rock server. ```RockML ``` -------------------------------- ### Advanced Confetti Animation Configuration in XAML Source: https://community.rockrms.com/developer/mobile-docs/essentials/controls/content-controls/confetti-view_Version=1.0.0 This example demonstrates a more advanced configuration of the Rock.ConfettiSystem within a Rock.ConfettiView. It utilizes a 'Burst' emitter with specific lifetime, angles, velocities, and custom emitter position and physics properties. This allows for fine-grained control over the confetti's behavior and appearance. ```xaml ``` -------------------------------- ### Convert String to Guid in XAML using NullableGuidConverter Source: https://community.rockrms.com/developer/mobile-docs/essentials/controls/xaml-extensions/nullable-guid-converter This XAML snippet demonstrates how to use the NullableGuidConverter to convert a string value from the 'ItemGuid' binding into a Guid type. This is necessary for properties or bindings that strictly require a Guid type, even if the string contains a valid Guid. ```xaml ``` -------------------------------- ### XML Example: Using CommandReference with Button and AggregateCommandParameters Source: https://community.rockrms.com/developer/mobile-docs/essentials/controls/developer-controls/command-reference This XML snippet demonstrates how to use the CommandReference object within a Button's Command property, leveraging AggregateCommandParameters to chain multiple commands. It shows how to bind commands and specify command parameters, including nested CommandReference objects with their own parameters. ```xml ``` -------------------------------- ### Configure Connection Opportunity List Block (Liquid/Rock) Source: https://community.rockrms.com/developer/mobile-docs/essentials/blocks/connection/connection-opportunity-list This Liquid/Rock template snippet demonstrates how to configure the Connection Opportunity List block using query parameters. It sets the pageGuid and connectionTypeGuid, then uses a Rock:PushPageParameters tag to navigate to a page displaying opportunities for the specified connection type. ```liquid {% assign pageGuid = '' %} {% assign connectionTypeGuid = 'dd565087-a4be-4943-b123-bf22777e8426' %} ``` -------------------------------- ### Hero Block Lava Example for Title Source: https://community.rockrms.com/developer/mobile-docs/essentials/blocks/cms/hero An example demonstrating how to use Lava to dynamically set the Hero block's title. This specific example uses the CurrentPerson.FirstName Lava variable to display the logged-in user's first name as the title. ```lava {{ CurrentPerson.FirstName }} ``` -------------------------------- ### Action Panel with Aggregate Bindings and Nested Commands Source: https://community.rockrms.com/developer/mobile-docs/essentials/commands_Version=1.0.0 This complex example showcases how to handle nested action items like `ShowActionPanel` with aggregate bindings. It demonstrates passing `BindingContext` references to maintain functionality at deeper nesting levels, including nested commands within action panel buttons. ```xml