Skip to content

Commit e2e2fc7

Browse files
committed
Rename Intent to IntentBuilder and Inner to Intent
To prepare for upcoming getters to use this crate to *read* incoming `Intent`s from e.g. `Activity.getIntent()`, the "default" builder pattern on `Intent` (storing a `Result` inside) is no longer applicable.
1 parent c86df55 commit e2e2fc7

File tree

3 files changed

+204
-131
lines changed

3 files changed

+204
-131
lines changed

example/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use android_activity::AndroidApp;
2-
use android_intent::{with_current_env, Action, Extra, Intent};
2+
use android_intent::{with_current_env, Action, Extra, IntentBuilder};
33

44
#[no_mangle]
55
fn android_main(_android_app: AndroidApp) {
66
with_current_env(|env| {
7-
Intent::new(env, Action::Send)
7+
IntentBuilder::new(env, Action::Send)
88
.with_type("text/plain")
99
.with_extra(Extra::Text, "Hello World!")
1010
.into_chooser()

0 commit comments

Comments
 (0)