-
Notifications
You must be signed in to change notification settings - Fork 6
MOBILE-341: Report what the embedded block shows and count shows where somebody is looking #757
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
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a0eae16
MOBILE-341: Report what the block shows instead of whether it is visible
bba4d3d
MOBILE-341: Count a show where somebody is looking and hold what fail…
f3fae6e
MOBILE-341: Let a wrapper set the block's timeout in code
d61efd8
MOBILE-341: Keep a settled block settled when its retry fails too
614f0c1
MOBILE-341: Hand a failure held off screen to start atomically
582229a
MOBILE-341: Answer the targeting question under both of its names
c8fcc68
MOBILE-341: Say out loud that Compose keeps the timeout it was built …
df51655
MOBILE-341: Keep comments only where they document the public API
2a27813
MOBILE-341: Stop answering the targeting question under its old name
194cee2
MOBILE-341: Report an outcome once, however many passes the screen takes
fedf59e
MOBILE-341: Stop the registry from outliving the blocks it registered
3029b17
MOBILE-341: Make release one way, and say what it is for
aeb8143
MOBILE-341: Take a place name as it is, and only ask whether it is empty
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
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
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
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
36 changes: 36 additions & 0 deletions
36
sdk/src/main/java/cloud/mindbox/mobile_sdk/embedded/MindboxEmbeddedBlockAppearance.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,36 @@ | ||
| package cloud.mindbox.mobile_sdk.embedded | ||
|
|
||
| import cloud.mindbox.mobile_sdk.annotations.InternalMindboxApi | ||
|
|
||
| /** | ||
| * How a [MindboxEmbeddedBlockView] occupies its place right now — what is drawn, not what happened. | ||
| * | ||
| * For wrappers that lay the block out themselves instead of relying on the view's own | ||
| * `visibility`. The rules behind the decision stay here: that an empty place shows no error view, | ||
| * that a place taken by loading is a place drawn, that a settled block keeps what it shows. A | ||
| * wrapper mirrors the answer in its own layout and nothing more, so every wrapper of the SDK shows | ||
| * the same thing at the same moment by construction. | ||
| * | ||
| * Deliberately not part of the public API: available to wrappers through [InternalMindboxApi]. | ||
| */ | ||
| @InternalMindboxApi | ||
| public enum class MindboxEmbeddedBlockAppearance { | ||
|
|
||
| /** The content is loading. The block takes its place and draws a loading screen. */ | ||
| PLACEHOLDER, | ||
|
|
||
| /** The block content is shown. */ | ||
| CONTENT, | ||
|
|
||
| /** | ||
| * The block failed and the host opted into showing it by setting | ||
| * [MindboxEmbeddedBlockView.setErrorView]. Never appears for an empty place. | ||
| */ | ||
| ERROR, | ||
|
|
||
| /** | ||
| * The block occupies no space: a failure without a host error view, or an empty place. The | ||
| * space goes back to the layout. | ||
| */ | ||
| COLLAPSED, | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.