{"id":13691823,"url":"https://github.com/Redth/Microsoft.Maui.Platform.Channels","last_synced_at":"2025-05-02T15:33:03.575Z","repository":{"id":41251735,"uuid":"432307546","full_name":"Redth/Microsoft.Maui.Platform.Channels","owner":"Redth","description":"A simple bridge for messaging between .NET and iOS/MacCatalyst/Android Platforms at runtime","archived":false,"fork":false,"pushed_at":"2024-02-06T20:11:59.000Z","size":544,"stargazers_count":53,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-22T20:09:39.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Redth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-11-26T21:43:06.000Z","updated_at":"2024-11-19T01:03:23.000Z","dependencies_parsed_at":"2024-02-06T21:39:54.123Z","dependency_job_id":"6ba101e3-3fd3-4721-8af1-4c1d4677f1ee","html_url":"https://github.com/Redth/Microsoft.Maui.Platform.Channels","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMicrosoft.Maui.Platform.Channels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMicrosoft.Maui.Platform.Channels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMicrosoft.Maui.Platform.Channels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMicrosoft.Maui.Platform.Channels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Redth","download_url":"https://codeload.github.com/Redth/Microsoft.Maui.Platform.Channels/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252063140,"owners_count":21688655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T17:00:50.777Z","updated_at":"2025-05-02T15:33:02.065Z","avatar_url":"https://github.com/Redth.png","language":"C#","funding_links":[],"categories":["UI"],"sub_categories":[],"readme":"# Microsoft.Maui.Platform.Channels\nA simple bridge for messaging between .NET and iOS/MacCatalyst/Android Platforms at runtime\n\n\n## Getting Started\n\n 1. Install prerequisites:\n\n    * Install [Xcode](https://developer.apple.com/xcode/).\n    * Install [Android Studio](https://developer.android.com/studio) and JDK 17.\n    * Install the latest [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0) and `maui` workload.\n\n 2. Build `Platforms`:\n    ```shell\n        dotnet build Platforms/build.proj\n    ```\n\n 3. Build `Microsoft.PlatformChannels.sln`:\n    ```shell\n        dotnet build Microsoft.PlatformChannels.sln\n    ```\n\n 4. Run the sample\n    ```shell\n        dotnet build SamplePlatformChannels/SamplePlatformChannels.csproj -t:Run -f net8.0-android\n        dotnet build SamplePlatformChannels/SamplePlatformChannels.csproj -t:Run -f net8.0-ios\n        dotnet build SamplePlatformChannels/SamplePlatformChannels.csproj -t:Run -f net8.0-maccatalyst\n    ```\n\n\n## ViewChannels\n1. Create your platform ViewChannel implementations using whatever platform specific code, libraries/sdks, etc. you like: https://github.com/Redth/Microsoft.Maui.Platform.Channels/blob/main/Platforms/Android/sample/src/main/java/com/microsoft/dotnet/platformchannels/sample/LabelViewChannel.java#L19-L23\n2. Reference your platform project from your .NET MAUI project: https://github.com/Redth/Microsoft.Maui.Platform.Channels/blob/main/SamplePlatformChannels/SamplePlatformChannels.csproj#L44\n3. Use the `PlatformChannelView` MAUI control to display your ViewChannel: https://github.com/Redth/Microsoft.Maui.Platform.Channels/blob/main/SamplePlatformChannels/MainPage.xaml#L17\n4. Send messages across to the platform: https://github.com/Redth/Microsoft.Maui.Platform.Channels/blob/main/SamplePlatformChannels/MainPage.xaml.cs#L18\n5. You can receive messages originating from the platform too: https://github.com/Redth/Microsoft.Maui.Platform.Channels/blob/main/SamplePlatformChannels/MainPage.xaml.cs#L48\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRedth%2FMicrosoft.Maui.Platform.Channels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRedth%2FMicrosoft.Maui.Platform.Channels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRedth%2FMicrosoft.Maui.Platform.Channels/lists"}