Skip to content

Commit 39ded58

Browse files
author
Federico Iosue
committed
Added "category" and "data" wrapper methods to IntentBuilder
1 parent 9b67a86 commit 39ded58

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • AndroidAnnotations/androidannotations-core/androidannotations-api/src/main/java/org/androidannotations/api/builder

‎AndroidAnnotations/androidannotations-core/androidannotations-api/src/main/java/org/androidannotations/api/builder/IntentBuilder.java‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import android.content.Context;
2222
import android.content.Intent;
23+
import android.net.Uri;
2324
import android.os.Bundle;
2425
import android.os.Parcelable;
2526

@@ -61,6 +62,16 @@ public I type(String type) {
6162
return (I) this;
6263
}
6364

65+
public I category(String category) {
66+
intent.addCategory(category);
67+
return (I) this;
68+
}
69+
70+
public I data(Uri data) {
71+
intent.setData(data);
72+
return (I) this;
73+
}
74+
6475
public I extra(String name, boolean value) {
6576
intent.putExtra(name, value);
6677
return (I) this;

0 commit comments

Comments
 (0)