1d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet/*
2d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * Copyright (C) 2012 The Android Open Source Project
3d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet *
4d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * Licensed under the Apache License, Version 2.0 (the "License");
5d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * you may not use this file except in compliance with the License.
6d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * You may obtain a copy of the License at
7d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet *
8d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet *      http://www.apache.org/licenses/LICENSE-2.0
9d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet *
10d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * Unless required by applicable law or agreed to in writing, software
11d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * distributed under the License is distributed on an "AS IS" BASIS,
12d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * See the License for the specific language governing permissions and
14d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet * limitations under the License.
15d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet */
16d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetpackage android.annotation;
17d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet
18d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport static java.lang.annotation.ElementType.CONSTRUCTOR;
19d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport static java.lang.annotation.ElementType.METHOD;
20d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport static java.lang.annotation.ElementType.TYPE;
21d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet
22d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport java.lang.annotation.Retention;
23d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport java.lang.annotation.RetentionPolicy;
24d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetimport java.lang.annotation.Target;
25d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet
26d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet/** Indicates that Lint should treat this type as targeting a given API level, no matter what the
27d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet    project target is. */
28d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet@Target({TYPE, METHOD, CONSTRUCTOR})
29d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet@Retention(RetentionPolicy.CLASS)
30d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohetpublic @interface TargetApi {
31d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet    /**
32d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet     * This sets the target api level for the type..
33d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet     */
34d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet    int value();
35d2726ba47ef49ff7de5cd955d702d0bb99432b4aXavier Ducrohet}
36