package com.camilstaps.common; /** * An item that can be shared (typically a fragment) */ public interface Sharable { /** * Get the item that should be shared when the user clicks on element R.id. * @param id the XML id the resource is linked to * @return the item to share */ public abstract T getItem(int id); /** * Get the XML id of the menu to inflate to give the user different sharing options * @return -1 if there are no options, an XML id if there are */ public abstract int getMenuId(); }