-
Notifications
You must be signed in to change notification settings - Fork 6
add support for attribution text #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
puneet-pdx
merged 7 commits into
feature-branches/geo-compose
from
puneet/2960_attribution
Nov 9, 2023
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c8c491b
add support for attribution text
puneet-pdx adfad3d
combine attribution bar properties/events in a state object
puneet-pdx ec1d693
refactor mapview parameter list
puneet-pdx 5e1c9fb
update collect lambda
puneet-pdx d5ef515
Update doc
puneet-pdx 92a3831
Merge branch 'feature-branches/geo-compose' into puneet/2960_attribution
puneet-pdx d55816b
update doc
puneet-pdx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
toolkit/geo-compose/src/main/java/com/arcgismaps/toolkit/geocompose/AttributionState.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* COPYRIGHT 1995-2023 ESRI | ||
* | ||
* TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL | ||
* Unpublished material - all rights reserved under the | ||
* Copyright Laws of the United States. | ||
* | ||
* For additional information, contact: | ||
* Environmental Systems Research Institute, Inc. | ||
* Attn: Contracts Dept | ||
* 380 New York Street | ||
* Redlands, California, USA 92373 | ||
* | ||
* email: [email protected] | ||
*/ | ||
|
||
package com.arcgismaps.toolkit.geocompose | ||
|
||
import androidx.compose.runtime.Stable | ||
import com.arcgismaps.mapping.view.AttributionBarLayoutChangeEvent | ||
|
||
/** | ||
* Data class for attribution bar related properties/events on the [com.arcgismaps.toolkit.geocompose.MapView]. | ||
* | ||
* @since 200.3.0 | ||
*/ | ||
@Stable | ||
public data class AttributionState( | ||
val isAttributionBarVisible: Boolean = true, | ||
val onAttributionTextChanged: ((String) -> Unit)? = null, | ||
val onAttributionBarLayoutChanged: ((AttributionBarLayoutChangeEvent) -> Unit)? = null | ||
) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wording nitpick...