diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index 198134edbb5b9..ee8abf1c18945 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -1,4 +1,13 @@ // Signature format: 2.0 +package android.app { + + public class BroadcastOptions { + method public int getMaxManifestReceiverApiLevel(); + method public void setMaxManifestReceiverApiLevel(int); + } + +} + package android.os { public class Binder implements android.os.IBinder { diff --git a/core/java/android/app/BroadcastOptions.java b/core/java/android/app/BroadcastOptions.java index 3789a44e1d557..03dca30f85605 100644 --- a/core/java/android/app/BroadcastOptions.java +++ b/core/java/android/app/BroadcastOptions.java @@ -127,6 +127,7 @@ public class BroadcastOptions { * them. This only applies to receivers declared in the app's AndroidManifest.xml. * @hide */ + @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES) public void setMaxManifestReceiverApiLevel(int apiLevel) { mMaxManifestReceiverApiLevel = apiLevel; } @@ -135,6 +136,7 @@ public class BroadcastOptions { * Return {@link #setMaxManifestReceiverApiLevel}. * @hide */ + @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES) public int getMaxManifestReceiverApiLevel() { return mMaxManifestReceiverApiLevel; }