---
schema_version: "1"
id: 56aa8597abab334014514e5ef253dfcc9a74ddf580b5a62f8b06de0691874bf9
title: LocationDelegate
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud-mobilepush/engagement_sdk/references/ios-sdk-v11/sfmc-sdk/protocols/locationdelegate.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/locationdelegate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c7036239e454212a8af8c26a5c34e1e61653d6c3cbf77520d397f17a3ad81cbe
products:
  - Salesforce Engagement SDK
---
# LocationDelegate

`Protocol`

## Declaration

```swift
@objc(SFMCSdkLocationDelegate)
public protocol LocationDelegate

@objc
func sfmc_shouldShowLocationMessage(_ message: [AnyHashable : Any], forRegion region: [AnyHashable : Any]) -> Bool
```

## Cases

### `sfmc_shouldShowLocationMessage(_:forRegion:)`

```swift
@objc
func sfmc_shouldShowLocationMessage(_ message: [AnyHashable : Any], forRegion region: [AnyHashable : Any]) -> Bool
```

---
