{"action":"closed","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs/issues/591","repository_url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs/issues/591/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs/issues/591/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs/issues/591/events","html_url":"https://github.com/MicrosoftDocs/xamarin-docs/issues/591","id":345162867,"node_id":"MDU6SXNzdWUzNDUxNjI4Njc=","number":591,"title":"Not clear if it's possible to use resource values in e.g. BroadcastReceiver attributes","user":{"login":"mungojam","id":3154635,"node_id":"MDQ6VXNlcjMxNTQ2MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/3154635?v=4","gravatar_id":"","url":"https://api.github.com/users/mungojam","html_url":"https://github.com/mungojam","followers_url":"https://api.github.com/users/mungojam/followers","following_url":"https://api.github.com/users/mungojam/following{/other_user}","gists_url":"https://api.github.com/users/mungojam/gists{/gist_id}","starred_url":"https://api.github.com/users/mungojam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mungojam/subscriptions","organizations_url":"https://api.github.com/users/mungojam/orgs","repos_url":"https://api.github.com/users/mungojam/repos","events_url":"https://api.github.com/users/mungojam/events{/privacy}","received_events_url":"https://api.github.com/users/mungojam/received_events","type":"User","site_admin":false},"labels":[{"id":866299295,"node_id":"MDU6TGFiZWw4NjYyOTkyOTU=","url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs/labels/Android","name":"Android","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-27T09:49:26Z","updated_at":"2018-07-27T13:43:52Z","closed_at":"2018-07-27T13:43:52Z","author_association":"NONE","body":"I'd like to enable a receiver based on a resource boolean flag. This is possible with native 'AndroidManifest.xml', but it's not clear if it would be possible when using the Xamarin attributes to create the receiver. The resource just returns the id so it can't compile as a bool:\n\n```    \n[BroadcastReceiver(\n        Label = \"MyReceiver\",\n        Name = \"MyReceiver.AppInstalled\",\n        Enabled = Resource.Boolean.beforeOreo\n     )]\n```\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: 4db71a47-f7c4-e619-af5d-f173d97df1bd\n* Version Independent ID: 1f6af9fe-e53f-de92-041a-4340b1ae45a4\n* Content: [Android Resource Basics - Xamarin](https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/resources-in-android/android-resource-basics?tabs=vswin)\n* Content Source: [docs/android/app-fundamentals/resources-in-android/android-resource-basics.md](https://github.com/MicrosoftDocs/xamarin-docs/blob/live/docs/android/app-fundamentals/resources-in-android/android-resource-basics.md)\n* Product: **xamarin**\n* GitHub Login: @mgmclemore\n* Microsoft Alias: **mamcle**"}}
{"actor":{"display_login":"topgenorth"}}