ShareActionProvider

Class of android.widget · ShareActionProvider.java · Android's reference

public class ShareActionProvider extends android.view.ActionProvider

ShareActionProvider ← ActionProvider

The share action of a menu, which lists the apps that take a share intent. No other apps are installed beside the app here, so the list has no targets: the action view is empty and has no submenu.

Nested types

Fields

public static final String DEFAULT_SHARE_HISTORY_FILE_NAME = "share_history.xml" source

Constructors

public ShareActionProvider(Context context) source

Methods

public void setOnShareTargetSelectedListener(OnShareTargetSelectedListener listener) source
public View onCreateActionView() source
public boolean hasSubMenu() source
public void setShareHistoryFileName(String shareHistoryFile) source
public void setShareIntent(Intent shareIntent) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.