1103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy/* 2103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * Copyright (C) 2013 The Android Open Source Project 3103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * 4103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * Licensed under the Apache License, Version 2.0 (the "License"); 5103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * you may not use this file except in compliance with the License. 6103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * You may obtain a copy of the License at 7103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * 8103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * http://www.apache.org/licenses/LICENSE-2.0 9103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * 10103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * Unless required by applicable law or agreed to in writing, software 11103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * distributed under the License is distributed on an "AS IS" BASIS, 12103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * See the License for the specific language governing permissions and 14103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * limitations under the License. 15103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy */ 16103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy 17103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy 18103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedypackage com.android.mail.ui; 19103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy 20103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedyimport android.app.Fragment; 21103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy 22103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy/** 23103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * Interface that permits elements to display a Fragment. 24103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy */ 25103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedypublic interface FragmentLauncher { 26103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy /** 27103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy * Launches the specified {@link Fragment} 28e0d01fb7379225a0f058999d9da9050f2fcc6945Scott Kennedy * 29e0d01fb7379225a0f058999d9da9050f2fcc6945Scott Kennedy * @param selectPosition The position of the list item to select, or -1 30103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy */ 31e0d01fb7379225a0f058999d9da9050f2fcc6945Scott Kennedy void launchFragment(Fragment fragment, int selectPosition); 32103319aaed26bce257de55b2fe93d4f78d3c59b9Scott Kennedy} 33