Partager via


DeviceAdminReceiver.OnSecurityLogsAvailable(Context, Intent) Method

Definition

Called when a new batch of security logs can be retrieved.

[Android.Runtime.Register("onSecurityLogsAvailable", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnSecurityLogsAvailable_Landroid_content_Context_Landroid_content_Intent_Handler", ApiSince=24)]
public virtual void OnSecurityLogsAvailable (Android.Content.Context context, Android.Content.Intent intent);
[<Android.Runtime.Register("onSecurityLogsAvailable", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnSecurityLogsAvailable_Landroid_content_Context_Landroid_content_Intent_Handler", ApiSince=24)>]
abstract member OnSecurityLogsAvailable : Android.Content.Context * Android.Content.Intent -> unit
override this.OnSecurityLogsAvailable : Android.Content.Context * Android.Content.Intent -> unit

Parameters

context
Context

The running context as per #onReceive.

intent
Intent

The received intent as per #onReceive.

Attributes

Remarks

Called when a new batch of security logs can be retrieved.

If a secondary user or profile is created, this callback won't be received until all users become affiliated again (even if security logging is enabled). See DevicePolicyManager#setAffiliationIds

This callback will be re-triggered if the logs are not retrieved.

This callback is only applicable to device owners and profile owners of organization-owned managed profiles.

This callback is triggered by a foreground broadcast and the app should ensure that any long-running work is not executed synchronously inside the callback.

Java documentation for android.app.admin.DeviceAdminReceiver.onSecurityLogsAvailable(android.content.Context, android.content.Intent).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to