{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"SDK Reference","type":"markdown"},"seo":{"title":"TSLocationConfig","description":"Everything about Mosaic Journeys, SDKs, and APIs","siteUrl":"https://developer.transmitsecurity.com/"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"tslocationconfig","__idx":0},"children":["TSLocationConfig"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Location tracking configuration for ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-ref/flutter-ts-accountprotection/drs#triggeraction"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["triggerAction()"]}]},". Controls how device location data is collected when reporting an action event. The user must consent to sharing location in advance (see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/risk/report_geolocation"},"children":["Track geolocation"]},")."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"properties","__idx":1},"children":["Properties"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"mode","__idx":2},"children":["mode"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["mode"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The location collection mode. Accepted values: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"disabled\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"default\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"forceCurrent\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"forceLastKnown\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"lastKnown\""]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"validfor","__idx":3},"children":["validFor"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["validFor"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["int"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lastKnown"]}," mode, return location only if not older than this many seconds"]}]},"headings":[{"value":"TSLocationConfig","id":"tslocationconfig","depth":1},{"value":"Properties","id":"properties","depth":2},{"value":"mode","id":"mode","depth":3},{"value":"validFor","id":"validfor","depth":3}],"frontmatter":{"title":"TSLocationConfig","seo":{"title":"TSLocationConfig"}},"lastModified":"2026-06-23T11:07:36.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/sdk-ref/flutter-ts-accountprotection/interfaces/tslocationconfig","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}