Lines Matching defs:item

81         void configureMenuItem(MenuItem item, IntentBuilder shareIntent);
86 public void configureMenuItem(MenuItem item, IntentBuilder shareIntent) {
87 item.setIntent(shareIntent.createChooserIntent());
124 public void configureMenuItem(MenuItem item, IntentBuilder shareIntent) {
125 ShareCompatICS.configureMenuItem(item, shareIntent.getActivity(),
127 if (shouldAddChooserIntent(item)) {
128 item.setIntent(shareIntent.createChooserIntent());
132 boolean shouldAddChooserIntent(MenuItem item) {
133 return !item.hasSubMenu();
143 boolean shouldAddChooserIntent(MenuItem item) {
213 * a standard activity chooser dialog for the menu item.</p>
223 * the share menu item.</li>
224 * <li>Keep a reference to the MenuItem object for the share item once it has been created
228 * @param item MenuItem to configure for sharing
231 public static void configureMenuItem(MenuItem item, IntentBuilder shareIntent) {
232 IMPL.configureMenuItem(item, shareIntent);
236 * Configure a menu item to act as a sharing action.
238 * @param menu Menu containing the item to use for sharing
239 * @param menuItemId ID of the share item within menu
244 MenuItem item = menu.findItem(menuItemId);
245 if (item == null) {
246 throw new IllegalArgumentException("Could not find menu item with id " + menuItemId +
249 configureMenuItem(item, shareIntent);
381 * ShareCompat.configureMenuItem()} to add a Share item to the menu while
697 * {@link Intent#ACTION_SEND} intent and contains a single shared item.
710 * one stream item.
777 * Get the URI of a stream item shared with the target activity.
780 * @param index Index of text item to retrieve
781 * @return Requested stream item URI